Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldItemInterface.php

function FieldItemInterface::getEntity

Gets the entity that field belongs to.

Return value

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

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

File

core/lib/Drupal/Core/Field/FieldItemInterface.php, line 99

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public function getEntity();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal