public function ExtraFieldFormBase::getEntity in Extra Field 8.2
Returns the field's parent entity.
Return value
\Drupal\Core\Entity\ContentEntityInterface The entity that hosts the field.
Overrides ExtraFieldFormInterface::getEntity
File
- src/
Plugin/ ExtraFieldFormBase.php, line 51
Class
- ExtraFieldFormBase
- Base class for Extra field Form plugins.
Namespace
Drupal\extra_field\PluginCode
public function getEntity() {
return $this->entity;
}