W3cubDocs

/Drupal 8

public function EntityFormInterface::setEntityManager

public EntityFormInterface::setEntityManager(EntityManagerInterface $entity_manager)

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.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 140

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function setEntityManager(EntityManagerInterface $entity_manager);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityFormInterface.php/function/EntityFormInterface::setEntityManager/8.1.x