public function FieldableEntityInterface::getFieldDefinitions

public FieldableEntityInterface::getFieldDefinitions()

Gets an array of field definitions of all contained fields.

Return value

\Drupal\Core\Field\FieldDefinitionInterface[] An array of field definitions, keyed by field name.

See also

\Drupal\Core\Entity\EntityManagerInterface::getFieldDefinitions()

File

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

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function getFieldDefinitions();

© 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::getFieldDefinitions/8.1.x