function FieldableEntityInterface::getFieldDefinitions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFieldDefinitions()
  2. 8.9.x core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFieldDefinitions()
  3. 10 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\EntityFieldManagerInterface::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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.