public function TagSetForm::getEntity in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Form/TagSetForm.php \Drupal\xbbcode\Form\TagSetForm::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/ TagSetForm.php, line 340
Class
- TagSetForm
- Base form for tag sets.
Namespace
Drupal\xbbcode\FormCode
public function getEntity() : EntityInterface {
$entity = parent::getEntity();
assert($entity instanceof EntityInterface);
return $entity;
}