You are here

public function ExtraFieldDisplayBase::getEntity in Extra Field 8.2

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

Returns the field's parent entity.

Return value

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

Overrides ExtraFieldDisplayInterface::getEntity

1 call to ExtraFieldDisplayBase::getEntity()
ExampleMultilingualField::getTagsField in modules/extra_field_example/src/Plugin/ExtraField/Display/ExampleMultilingualField.php
Returns the Tags field this plugin uses.

File

src/Plugin/ExtraFieldDisplayBase.php, line 48

Class

ExtraFieldDisplayBase
Base class for Extra field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function getEntity() {
  return $this->entity;
}