You are here

abstract public function LabeledFormTrait::getEntity in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x 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\Form

Code

public abstract function getEntity() : EntityInterface;