public function FieldableEntityInterface::getFieldDefinition
public FieldableEntityInterface::getFieldDefinition($name)
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);
© 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::getFieldDefinition/8.1.x