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
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Config\ConfigFactory;
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\ContextAwarePluginAssignmentTrait;
use Drupal\Core\Plugin\ContextAwarePluginInterface;
......@@ -30,7 +30,7 @@ class BlockFieldConfigForm extends FieldFormBase implements ContainerInjectionIn
/**
* {@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);
$this->contextRepository = $context_repository;
}
......
......@@ -7,7 +7,7 @@ use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
......@@ -35,7 +35,7 @@ class FieldFormBase extends ConfigFormBase implements ContainerInjectionInterfac
/**
* Drupal module handler.
*
* @var \Drupal\Core\Extension\ModuleHandler
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;
......@@ -55,10 +55,10 @@ class FieldFormBase extends ConfigFormBase implements ContainerInjectionInterfac
* The entity type manager.
* @param \Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_invalidator
* The cache invalidator.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler
* @param \Drupal\Core\Extension\ModuleHandlerInterface $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);
$this->entityTypeManager = $entity_type_manager;
$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