You are here

public function ExtraFieldDisplayInterface::getEntity in Extra Field 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/ExtraFieldDisplayInterface.php \Drupal\extra_field\Plugin\ExtraFieldDisplayInterface::getEntity()

Returns the field's parent entity.

Return value

\Drupal\Core\Entity\ContentEntityInterface The entity that hosts the field.

1 method overrides ExtraFieldDisplayInterface::getEntity()
ExtraFieldDisplayBase::getEntity in src/Plugin/ExtraFieldDisplayBase.php
Returns the field's parent entity.

File

src/Plugin/ExtraFieldDisplayInterface.php, line 39

Class

ExtraFieldDisplayInterface
Defines an interface for Extra Field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function getEntity();