You are here

public function FieldableEntityInterface::getFieldDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

1 method overrides FieldableEntityInterface::getFieldDefinition()
ContentEntityBase::getFieldDefinition in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets the definition of a contained field.

File

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

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function getFieldDefinition($name);