You are here

public function FieldItemListInterface::getEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::getEntity()

Gets the entity that field belongs to.

Return value

\Drupal\Core\Entity\EntityInterface The entity object.

1 method overrides FieldItemListInterface::getEntity()
FieldItemList::getEntity in core/lib/Drupal/Core/Field/FieldItemList.php
Gets the entity that field belongs to.

File

core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 39
Contains \Drupal\Core\Field\FieldItemListInterface.

Class

FieldItemListInterface
Interface for fields, being lists of field items.

Namespace

Drupal\Core\Field

Code

public function getEntity();