function FieldLayoutEntityDisplayFormTrait::getEntity

Same name in other branches
  1. 9 core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php \Drupal\field_layout\Form\FieldLayoutEntityDisplayFormTrait::getEntity()
  2. 8.9.x core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php \Drupal\field_layout\Form\FieldLayoutEntityDisplayFormTrait::getEntity()
  3. 11.x core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php \Drupal\field_layout\Form\FieldLayoutEntityDisplayFormTrait::getEntity()

Gets the form entity.

Return value

\Drupal\field_layout\Display\EntityDisplayWithLayoutInterface The current form entity.

3 calls to FieldLayoutEntityDisplayFormTrait::getEntity()
FieldLayoutEntityDisplayFormTrait::form in core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php
Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::form().
FieldLayoutEntityDisplayFormTrait::submitForm in core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php
Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::submitForm().
FieldLayoutEntityDisplayFormTrait::validateForm in core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php
Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::validateForm().

File

core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php, line 177

Class

FieldLayoutEntityDisplayFormTrait
Provides shared code for entity display forms.

Namespace

Drupal\field_layout\Form

Code

public abstract function getEntity();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.