public function EntityFormController::setEntity

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

Overrides EntityFormControllerInterface::setEntity

File

drupal/core/lib/Drupal/Core/Entity/EntityFormController.php, line 410
Contains \Drupal\Core\Entity\EntityFormController.

Class

EntityFormController
Base class for entity form controllers.

Namespace

Drupal\Core\Entity

Code

public function setEntity(EntityInterface $entity) {
  $this->entity = $entity;
  return $this;
}