You are here

public function FieldableEntityInterface::getFieldDefinitions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\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()

1 method overrides FieldableEntityInterface::getFieldDefinitions()
ContentEntityBase::getFieldDefinitions in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets an array of field definitions of all contained fields.

File

core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 131
Contains \Drupal\Core\Entity\FieldableEntityInterface.

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function getFieldDefinitions();