public function EntityForm::setEntityManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::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
Overrides EntityFormInterface::setEntityManager
File
- core/
lib/ Drupal/ Core/ Entity/ EntityForm.php, line 411 - Contains \Drupal\Core\Entity\EntityForm.
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\EntityCode
public function setEntityManager(EntityManagerInterface $entity_manager) {
$this->entityManager = $entity_manager;
return $this;
}