public function EntityFormController::setEntity

Implements Drupal\Core\Entity\EntityFormControllerInterface::setEntity().

Overrides EntityFormControllerInterface::setEntity

2 calls to EntityFormController::setEntity()
EntityFormController::init in drupal/core/lib/Drupal/Core/Entity/EntityFormController.php
Initialize the form state and the entity before the first form build.
EntityFormController::submit in drupal/core/lib/Drupal/Core/Entity/EntityFormController.php
Implements Drupal\Core\Entity\EntityFormControllerInterface::submit().
1 method overrides EntityFormController::setEntity()
ViewEditFormController::setEntity in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php
Overrides Drupal\Core\Entity\EntityFormController::setEntity().

File

drupal/core/lib/Drupal/Core/Entity/EntityFormController.php, line 312
Definition of Drupal\Core\Entity\EntityFormController.

Class

EntityFormController
Base class for entity form controllers.

Namespace

Drupal\Core\Entity

Code

public function setEntity(EntityInterface $entity, array &$form_state) {
  $form_state['entity'] = $entity;
}