public function FieldableEntityInterface::toArray

public FieldableEntityInterface::toArray()

Gets an array of all field values.

Gets an array of plain field values, including only non-computed values. Note that the structure varies by entity type and bundle.

Return value

array An array of field values, keyed by field name.

Overrides EntityInterface::toArray

File

core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 137

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function toArray();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!FieldableEntityInterface.php/function/FieldableEntityInterface::toArray/8.1.x