function EntityInterface::toArray

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::toArray()
  2. 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::toArray()
  3. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::toArray()
  4. 8.9.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::toArray()

Gets an array of all property values.

Return value

mixed[] An array of property values, keyed by property name.

1 method overrides EntityInterface::toArray()
ViewUI::toArray in core/modules/views_ui/src/ViewUI.php
Gets an array of all property values.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 397

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function toArray();

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