function EntityFormInterface::setEntityManager
Sets the entity manager for this form.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
Return value
$this
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead.
See also
https://www.drupal.org/node/2549139
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 141
Class
- EntityFormInterface
- Defines an interface for entity form classes.
Namespace
Drupal\Core\EntityCode
public function setEntityManager(EntityManagerInterface $entity_manager);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.