Skip to content
Snippets Groups Projects
Commit 867cb765 authored by auth's avatar auth Committed by Kristof De Jaeger
Browse files

Issue #3308842 by auth: Use the ModuleHandlerInterface instead of the...

Issue #3308842 by auth: Use the ModuleHandlerInterface instead of the ModuleHandler concrete implementation
parent 4f3e7a82
Branches
Tags
No related merge requests found
...@@ -7,7 +7,7 @@ use Drupal\Core\Form\FormStateInterface; ...@@ -7,7 +7,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface; use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\Context\ContextRepositoryInterface; use Drupal\Core\Plugin\Context\ContextRepositoryInterface;
use Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait; use Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait;
use Drupal\Core\Plugin\ContextAwarePluginInterface; use Drupal\Core\Plugin\ContextAwarePluginInterface;
...@@ -30,7 +30,7 @@ class BlockFieldConfigForm extends FieldFormBase implements ContainerInjectionIn ...@@ -30,7 +30,7 @@ class BlockFieldConfigForm extends FieldFormBase implements ContainerInjectionIn
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_invalidator, ModuleHandler $module_handler, ContextRepositoryInterface $context_repository) { public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_invalidator, ModuleHandlerInterface $module_handler, ContextRepositoryInterface $context_repository) {
parent::__construct($config_factory, $entity_type_manager, $cache_invalidator, $module_handler); parent::__construct($config_factory, $entity_type_manager, $cache_invalidator, $module_handler);
$this->contextRepository = $context_repository; $this->contextRepository = $context_repository;
} }
......
...@@ -7,7 +7,7 @@ use Drupal\Core\Cache\CacheTagsInvalidatorInterface; ...@@ -7,7 +7,7 @@ use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
...@@ -35,7 +35,7 @@ class FieldFormBase extends ConfigFormBase implements ContainerInjectionInterfac ...@@ -35,7 +35,7 @@ class FieldFormBase extends ConfigFormBase implements ContainerInjectionInterfac
/** /**
* Drupal module handler. * Drupal module handler.
* *
* @var \Drupal\Core\Extension\ModuleHandler * @var \Drupal\Core\Extension\ModuleHandlerInterface
*/ */
protected $moduleHandler; protected $moduleHandler;
...@@ -55,10 +55,10 @@ class FieldFormBase extends ConfigFormBase implements ContainerInjectionInterfac ...@@ -55,10 +55,10 @@ class FieldFormBase extends ConfigFormBase implements ContainerInjectionInterfac
* The entity type manager. * The entity type manager.
* @param \Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_invalidator * @param \Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_invalidator
* The cache invalidator. * The cache invalidator.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler. * The module handler.
*/ */
public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_invalidator, ModuleHandler $module_handler) { public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_invalidator, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory); parent::__construct($config_factory);
$this->entityTypeManager = $entity_type_manager; $this->entityTypeManager = $entity_type_manager;
$this->cacheInvalidator = $cache_invalidator; $this->cacheInvalidator = $cache_invalidator;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment