FieldItemListInterface::getEntity

public FieldItemListInterface::getEntity()

Gets the entity that field belongs to.

Return value

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

File

core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 36

Class

FieldItemListInterface
Interface for fields, being lists of field items.

Namespace

Drupal\Core\Field

Code

public function getEntity();
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.