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

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

Please login to continue.