You are here

public function EntityFormInterface::setEntityManager in Zircon Profile 8

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

Sets the entity manager for this form.

@todo Remove this set call in https://www.drupal.org/node/2603542.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

Return value

$this

Deprecated

in Drupal 8.0.0, will be removed before Drupal 9.0.0.

1 method overrides EntityFormInterface::setEntityManager()
EntityForm::setEntityManager in core/lib/Drupal/Core/Entity/EntityForm.php
Sets the entity manager for this form.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 145
Contains \Drupal\Core\Entity\EntityFormInterface.

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function setEntityManager(EntityManagerInterface $entity_manager);