function FieldItemInterface::getEntity
Gets the entity that field belongs to.
Return value
\Drupal\Core\Entity\FieldableEntityInterface The entity object.
1 method overrides FieldItemInterface::getEntity()
- FieldItemBase::getEntity in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemInterface.php, line 99
Class
- FieldItemInterface
- Interface for entity field items.
Namespace
Drupal\Core\FieldCode
public function getEntity();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.