public function EntityForm::setEntityTypeManager
public EntityForm::setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager)
Sets the entity type manager for this form.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Return value
$this
Overrides EntityFormInterface::setEntityTypeManager
File
- core/lib/Drupal/Core/Entity/EntityForm.php, line 426
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\EntityCode
public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) { $this->entityTypeManager = $entity_type_manager; return $this; }
© 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!EntityForm.php/function/EntityForm::setEntityTypeManager/8.1.x