mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: Renamed ArrayData::getArray() to toMap() to make it consistent with DataObject. This also makes it work with SapphireTest assertation methods.
This commit is contained in:
parent
f5d2e43636
commit
79cde9df25
@ -43,7 +43,7 @@ class ArrayData extends ViewableData {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getArray() {
|
||||
public function toMap() {
|
||||
return $this->array;
|
||||
}
|
||||
|
||||
@ -107,4 +107,12 @@ class ArrayData extends ViewableData {
|
||||
function forTemplate() {
|
||||
return var_export($this->array, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use {@link ArrayData::toMap()}.
|
||||
*/
|
||||
public function getArray() {
|
||||
return $this->toMap();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user