function EntityFormInterface::setEntityTypeManager

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setEntityTypeManager()
  2. 10 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setEntityTypeManager()
  3. 11.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setEntityTypeManager()

Sets the entity type manager for this form.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Return value

$this

1 method overrides EntityFormInterface::setEntityTypeManager()
EntityForm::setEntityTypeManager in core/lib/Drupal/Core/Entity/EntityForm.php
Sets the entity type manager for this form.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 136

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager);

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