EntityForm::setEntityManager

public EntityForm::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

Overrides EntityFormInterface::setEntityManager

Deprecated

in Drupal 8.0.0, will be removed before Drupal 9.0.0.

File

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

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function setEntityManager(EntityManagerInterface $entity_manager) {
  $this->entityManager = $entity_manager;
  return $this;
}
doc_Drupal
2016-10-29 09:06:09
Comments
Leave a Comment

Please login to continue.