Search for toArray

  1. Search 7.x for toArray
  2. Search 8.9.x for toArray
  3. Search 10.3.x for toArray
  4. Search 11.x for toArray
  5. Other projects
Title Object type File name Summary
ArrayElement::toArray function core/lib/Drupal/Core/Config/Schema/ArrayElement.php
Attribute::toArray function core/lib/Drupal/Core/Template/Attribute.php Returns all storage elements as an array.
BatchBuilder::toArray function core/lib/Drupal/Core/Batch/BatchBuilder.php Converts a \Drupal\Core\Batch\Batch object into an array.
CKEditor5PluginDefinition::toArray function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Gets an array representation of this CKEditor 5 plugin definition.
ComplexDataInterface::toArray function core/lib/Drupal/Core/TypedData/ComplexDataInterface.php Returns an array of all property values.
ConfigEntityBase::toArray function core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
ConfigEntityBaseUnitTest::testToArray function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::toArray[[api-linebreak]]
ConfigEntityBaseUnitTest::testToArrayIdKey function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::toArray[[api-linebreak]]
ConfigEntityBaseUnitTest::testToArraySchemaException function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::toArray[[api-linebreak]]
ContentEntity::toArray function core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php Converts an entity to an array.
ContentEntityBase::toArray function core/lib/Drupal/Core/Entity/ContentEntityBase.php
Data::toArray function core/modules/jsonapi/src/JsonApiResource/Data.php Returns the collection as an array.
DataDefinition::toArray function core/lib/Drupal/Core/TypedData/DataDefinition.php Returns all definition values as array.
EntityAdapter::toArray function core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php
EntityAdapterUnitTest::testToArray function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::toArray[[api-linebreak]]
EntityAdapterUnitTest::testToArrayWithoutData function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::toArray[[api-linebreak]]
EntityBase::toArray function core/lib/Drupal/Core/Entity/EntityBase.php
EntityDisplayBase::toArray function core/lib/Drupal/Core/Entity/EntityDisplayBase.php
EntityInterface::toArray function core/lib/Drupal/Core/Entity/EntityInterface.php Gets an array of all property values.
FieldableEntityInterface::toArray function core/lib/Drupal/Core/Entity/FieldableEntityInterface.php Gets an array of all field values.
FieldConfigEntityUnitTest::testToArray function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @covers ::toArray[[api-linebreak]]
FileTranslation::filesToArray function core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php Reads the given Gettext PO files into a data structure.
FilterFormat::toArray function core/modules/filter/src/Entity/FilterFormat.php
Map::toArray function core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php
MapItem::toArray function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php
Section::toArray function core/modules/layout_builder/src/Section.php Returns an array representation of the section.
SectionComponent::toArray function core/modules/layout_builder/src/SectionComponent.php Returns an array representation of the section component.
StorageCopyTraitTest::toArray function core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php Get the protected config data out of a MemoryStorage.
TypedConfigInterface::toArray function core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php Returns an array of all property values.
ViewUI::toArray function core/modules/views_ui/src/ViewUI.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.