public function FieldableEntityInterface::toArray in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\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 142 - Contains \Drupal\Core\Entity\FieldableEntityInterface.
Class
- FieldableEntityInterface
- Interface for entities having fields.
Namespace
Drupal\Core\EntityCode
public function toArray();