You are here

public function ExtraFieldFormInterface::getEntity in Extra Field 8.2

Returns the field's parent entity.

Return value

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

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

File

src/Plugin/ExtraFieldFormInterface.php, line 42

Class

ExtraFieldFormInterface
Defines an interface for Extra Field Form plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function getEntity();