function FieldableEntityInterface::getFieldDefinition
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFieldDefinition()
- 8.9.x core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFieldDefinition()
- 10 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFieldDefinition()
Gets the definition of a contained field.
Parameters
string $name: The name of the field.
Return value
\Drupal\Core\Field\FieldDefinitionInterface|null The definition of the field or null if the field does not exist.
File
-
core/
lib/ Drupal/ Core/ Entity/ FieldableEntityInterface.php, line 116
Class
- FieldableEntityInterface
- Interface for entities having fields.
Namespace
Drupal\Core\EntityCode
public function getFieldDefinition($name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.