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

1
2
3
4
public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.