public function EntityFormController::getEntity

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

Overrides EntityFormControllerInterface::getEntity

31 calls to EntityFormController::getEntity()
AccountFormController::validate in drupal/core/modules/user/lib/Drupal/user/AccountFormController.php
Overrides Drupal\Core\Entity\EntityFormController::submit().
CategoryFormController::delete in drupal/core/modules/contact/lib/Drupal/contact/CategoryFormController.php
Overrides Drupal\Core\Entity\EntityFormController::delete().
CategoryFormController::save in drupal/core/modules/contact/lib/Drupal/contact/CategoryFormController.php
Overrides Drupal\Core\Entity\EntityFormController::save().
CommentFormController::actions in drupal/core/modules/comment/lib/Drupal/comment/CommentFormController.php
Overrides Drupal\Core\Entity\EntityFormController::actions().
CommentFormController::preview in drupal/core/modules/comment/lib/Drupal/comment/CommentFormController.php
Form submission handler for the 'preview' action.

... See full list

1 method overrides EntityFormController::getEntity()
ViewEditFormController::getEntity in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php
Overrides Drupal\Core\Entity\EntityFormController::getEntity().

File

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

Class

EntityFormController
Base class for entity form controllers.

Namespace

Drupal\Core\Entity

Code

public function getEntity(array $form_state) {
  return isset($form_state['entity']) ? $form_state['entity'] : NULL;
}