You are here

public function TagSetForm::getEntity in Extensible BBCode 8.3

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

Class

TagSetForm
Base form for tag sets.

Namespace

Drupal\xbbcode\Form

Code

public function getEntity() : EntityInterface {
  $entity = parent::getEntity();
  assert($entity instanceof EntityInterface);
  return $entity;
}