function EntityForm::setEntityManager

Overrides EntityFormInterface::setEntityManager

File

core/lib/Drupal/Core/Entity/EntityForm.php, line 463

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function setEntityManager(EntityManagerInterface $entity_manager) {
    @trigger_error('EntityForm::setEntityManager() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead. See https://www.drupal.org/node/2549139', E_USER_DEPRECATED);
    $this->privateEntityManager = $entity_manager;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.