public function ExtraFieldDisplayInterface::getEntity in Extra Field 8
Same name and namespace in other branches
- 8.2 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\PluginCode
public function getEntity();