public function TagFormBase::getEntity in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Form/TagFormBase.php \Drupal\xbbcode\Form\TagFormBase::getEntity()
Gets the form entity.
The form entity which has been used for populating form element defaults.
Redeclared here because PHP traits cannot implement interfaces.
Return value
\Drupal\Core\Entity\EntityInterface The current form entity.
Overrides LabeledFormTrait::getEntity
See also
\Drupal\Core\Entity\EntityFormInterface::getEntity()
File
- src/
Form/ TagFormBase.php, line 239
Class
- TagFormBase
- Base form for custom tags.
Namespace
Drupal\xbbcode\FormCode
public function getEntity() : EntityInterface {
$entity = parent::getEntity();
assert($entity instanceof EntityInterface);
return $entity;
}