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\Entity

Code

public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  return $this;
}
doc_Drupal
2016-10-29 09:06:09
Comments
Leave a Comment

Please login to continue.