Search for toArray

  1. Search 7.x for toArray
  2. Search 9.5.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 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.
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
Constraint::toArray function core/lib/Drupal/Component/Version/Constraint.php A list of associative arrays representing the constraint.
ConstraintTest::testToArray function core/tests/Drupal/Tests/Component/Version/ConstraintTest.php @covers ::toArray
@group legacy
@expectedDeprecation Drupal\Component\Version\Constraint::toArray() only exists to provide a backwards compatibility layer. See https://www.drupal.org/node/2756875
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 Gets an array of all property values.
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.
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.