Search for toArray

  1. Search 7.x for toArray
  2. Search 9.5.x for toArray
  3. Search 8.9.x for toArray
  4. Search 10.3.x for toArray
  5. Other projects
Title Object type File name Summary
ArrayElement::toArray function core/lib/Drupal/Core/Config/Schema/ArrayElement.php Returns an array of all property values.
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.
CKEditor5ValidationTestTrait::violationsToArray function core/modules/ckeditor5/tests/src/Kernel/CKEditor5ValidationTestTrait.php Transforms a constraint violation list object to an assertable array.
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 Gets an array of all property values.
ConfigEntityBaseUnitTest::testToArray function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::toArray
ConfigEntityBaseUnitTest::testToArrayIdKey function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::toArray
ConfigEntityBaseUnitTest::testToArraySchemaException function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::toArray
ConfigTest::addToArray function core/modules/config/tests/config_test/src/Entity/ConfigTest.php Adds a value to the array property.
ConfigTest::toArray function core/modules/config/tests/config_test/src/Entity/ConfigTest.php
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 Gets an array of all property values.
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 Returns an array of all property values.
EntityAdapterUnitTest::testToArray function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::toArray
EntityAdapterUnitTest::testToArrayWithoutData function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::toArray
EntityBase::toArray function core/lib/Drupal/Core/Entity/EntityBase.php Gets an array of all property values.
EntityDisplayBase::toArray function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Gets an array of all property values.
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
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 Returns an array of all property values.
MapItem::toArray function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php Returns an array of all property values.
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.
UpdateSettingsForm::multiLineStringToArray function core/modules/update/src/UpdateSettingsForm.php Prepares the submitted value to be stored in the notify_emails property.
ViewUI::toArray function core/modules/views_ui/src/ViewUI.php Gets an array of all property values.

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