diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockFormController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockFormController.php index 2f97bb3..efc5541 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockFormController.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockFormController.php @@ -8,41 +8,13 @@ namespace Drupal\custom_block; use Drupal\Core\Datetime\DrupalDateTime; -use Drupal\Core\Entity\EntityControllerInterface; use Drupal\Core\Entity\EntityFormControllerNG; -use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Language\Language; /** * Form controller for the custom block edit forms. */ -class CustomBlockFormController extends EntityFormControllerNG implements EntityControllerInterface { - - /** - * The module handler service. - * - * @var \Drupal\Core\Extension\ModuleHandlerInterface - */ - protected $moduleHandler; - - /** - * Constructs an EntityFormController object. - * - * @param \Drupal\Core\Extension\ModuleHandlerInterface - * The module handler service. - */ - public function __construct(ModuleHandlerInterface $module_handler) { - $this->moduleHandler = $module_handler; - } - - /** - * {@inheritdoc} - */ - public static function createInstance(ContainerInterface $container, $entity_type, array $entity_info) { - return new static( - $container->get('module_handler') - ); - } +class CustomBlockFormController extends EntityFormControllerNG { /** * Overrides \Drupal\Core\Entity\EntityFormController::prepareEntity(). diff --git a/core/modules/node/lib/Drupal/node/NodeFormController.php b/core/modules/node/lib/Drupal/node/NodeFormController.php index ae47973..31691e1 100644 --- a/core/modules/node/lib/Drupal/node/NodeFormController.php +++ b/core/modules/node/lib/Drupal/node/NodeFormController.php @@ -9,15 +9,13 @@ use Drupal\Component\Utility\NestedArray; use Drupal\Core\Datetime\DrupalDateTime; -use Drupal\Core\Entity\EntityControllerInterface; use Drupal\Core\Entity\EntityFormController; -use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Language\Language; /** * Form controller for the node edit forms. */ -class NodeFormController extends EntityFormController implements EntityControllerInterface { +class NodeFormController extends EntityFormController { /** * Default settings for this content/node type. @@ -27,32 +25,6 @@ class NodeFormController extends EntityFormController implements EntityControlle protected $settings; /** - * The module handler service. - * - * @var \Drupal\Core\Extension\ModuleHandlerInterface - */ - protected $moduleHandler; - - /** - * Constructs an NodeFormController object. - * - * @param \Drupal\Core\Extension\ModuleHandlerInterface - * The module handler service. - */ - public function __construct(ModuleHandlerInterface $module_handler) { - $this->moduleHandler = $module_handler; - } - - /** - * {@inheritdoc} - */ - public static function createInstance(ContainerInterface $container, $entity_type, array $entity_info) { - return new static( - $container->get('module_handler') - ); - } - - /** * {@inheritdoc} */ protected function prepareEntity() { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php index df81ef8..235a839 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php @@ -7,41 +7,13 @@ namespace Drupal\taxonomy; -use Drupal\Core\Entity\EntityControllerInterface; use Drupal\Core\Entity\EntityFormControllerNG; -use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Language\Language; /** * Base for controller for taxonomy term edit forms. */ -class TermFormController extends EntityFormControllerNG implements EntityControllerInterface { - - /** - * The module handler service. - * - * @var \Drupal\Core\Extension\ModuleHandlerInterface - */ - protected $moduleHandler; - - /** - * Constructs an TermFormController object. - * - * @param \Drupal\Core\Extension\ModuleHandlerInterface - * The module handler service. - */ - public function __construct(ModuleHandlerInterface $module_handler) { - $this->moduleHandler = $module_handler; - } - - /** - * {@inheritdoc} - */ - public static function createInstance(ContainerInterface $container, $entity_type, array $entity_info) { - return new static( - $container->get('module_handler') - ); - } +class TermFormController extends EntityFormControllerNG { /** * Overrides Drupal\Core\Entity\EntityFormController::form().