You are here

protected function EntityForm::prepareEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::prepareEntity()
  2. 9 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.
3 methods override EntityForm::prepareEntity()
ContentEntityForm::prepareEntity in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Prepares the entity object before the form is built first.
EntityDisplayModeAddForm::prepareEntity in core/modules/field_ui/src/Form/EntityDisplayModeAddForm.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 379

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

protected function prepareEntity() {
}