FieldItemInterface::getEntity

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();
doc_Drupal
2016-10-29 09:11:46
Comments
Leave a Comment

Please login to continue.