You are here

protected function EntityForm::prepareEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::prepareEntity()

Prepares the entity object before the form is built first.

1 call to EntityForm::prepareEntity()
EntityForm::init in core/lib/Drupal/Core/Entity/EntityForm.php
Initialize the form state and the entity before the first form build.
5 methods override EntityForm::prepareEntity()
BlockContentForm::prepareEntity in core/modules/block_content/src/BlockContentForm.php
Overrides \Drupal\Core\Entity\EntityForm::prepareEntity().
EntityDisplayModeAddForm::prepareEntity in core/modules/field_ui/src/Form/EntityDisplayModeAddForm.php
Prepares the entity object before the form is built first.
EntityTestForm::prepareEntity in core/modules/system/tests/modules/entity_test/src/EntityTestForm.php
Prepares the entity object before the form is built first.
NodeForm::prepareEntity in core/modules/node/src/NodeForm.php
Prepares the entity object before the form is built first.
ViewFormBase::prepareEntity in core/modules/views_ui/src/ViewFormBase.php
Prepares the entity object before the form is built first.

File

core/lib/Drupal/Core/Entity/EntityForm.php, line 370
Contains \Drupal\Core\Entity\EntityForm.

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

protected function prepareEntity() {
}