abstract public function LabeledFormTrait::getEntity in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Form/LabeledFormTrait.php \Drupal\xbbcode\Form\LabeledFormTrait::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.
See also
\Drupal\Core\Entity\EntityFormInterface::getEntity()
2 methods override LabeledFormTrait::getEntity()
- TagFormBase::getEntity in src/
Form/ TagFormBase.php - Gets the form entity.
- TagSetForm::getEntity in src/
Form/ TagSetForm.php - Gets the form entity.
File
- src/
Form/ LabeledFormTrait.php, line 29
Class
- LabeledFormTrait
- Helper function for adding label fields to an entity form.
Namespace
Drupal\xbbcode\FormCode
public abstract function getEntity() : EntityInterface;