public FieldItemInterface::getEntity()
Gets the entity that field belongs to.
Return value
\Drupal\Core\Entity\FieldableEntityInterface The entity object.
File
- core/lib/Drupal/Core/Field/FieldItemInterface.php, line 96
Class
- FieldItemInterface
- Interface for entity field items.
Namespace
Drupal\Core\Field
Code
public function getEntity();
Please login to continue.