You are here

public function ExtraFieldDisplayBase::getEntity in Extra Field 8

Same name and namespace in other branches
  1. 8.2 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 47

Class

ExtraFieldDisplayBase
Base class for Extra field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

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