function EntityForm::setEntityTypeManager

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

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

1 call to EntityForm::setEntityTypeManager()
OverviewTerms::__construct in core/modules/taxonomy/src/Form/OverviewTerms.php
Constructs an OverviewTerms object.

File

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

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  return $this;
}

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