8.3.x Entity.php public Entity::toArray()
8.0.x Entity.php public Entity::toArray()
8.1.x Entity.php public Entity::toArray()
8.2.x Entity.php public Entity::toArray()
8.4.x Entity.php public Entity::toArray()

Gets an array of all property values.

Return value

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

Overrides EntityInterface::toArray

2 methods override Entity::toArray()
ConfigEntityBase::toArray in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Gets an array of all property values.
ContentEntityBase::toArray in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets an array of all property values.

File

core/lib/Drupal/Core/Entity/Entity.php, line 587

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function toArray() {
  return array();
}