You are here

public function EntityFormInterface::setModuleHandler in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setModuleHandler()
  2. 10 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setModuleHandler()

Sets the module handler for this form.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Return value

$this

1 method overrides EntityFormInterface::setModuleHandler()
EntityForm::setModuleHandler in core/lib/Drupal/Core/Entity/EntityForm.php
Sets the module handler for this form.

File

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

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function setModuleHandler(ModuleHandlerInterface $module_handler);