diff --git a/core/lib/Drupal/Core/Config/Schema/Sequence.php b/core/lib/Drupal/Core/Config/Schema/Sequence.php index e1f0704..f49c9ac 100644 --- a/core/lib/Drupal/Core/Config/Schema/Sequence.php +++ b/core/lib/Drupal/Core/Config/Schema/Sequence.php @@ -92,7 +92,7 @@ public function set($index, $item) { /** * {@inheritdoc} */ - public function getArray() { + public function toArray() { return $this->getElements(); } diff --git a/core/lib/Drupal/Core/TypedData/ListInterface.php b/core/lib/Drupal/Core/TypedData/ListInterface.php index 4a270d5..3555dd9 100644 --- a/core/lib/Drupal/Core/TypedData/ListInterface.php +++ b/core/lib/Drupal/Core/TypedData/ListInterface.php @@ -95,7 +95,7 @@ public function first(); * * @return array */ - public function getArray(); + public function toArray(); /** * Sets the array of list items. diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php index 8fbe434..1721bdc 100644 --- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php +++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php @@ -254,7 +254,7 @@ public function __clone() { /** * {@inheritdoc} */ - public function getArray() { + public function toArray() { return $this->list; }