Skip to content
Snippets Groups Projects
Commit 69f1ef80 authored by Peter Kokot's avatar Peter Kokot Committed by Carsten Logemann
Browse files

Issue #3108796 by peterkokot: Use EntityTypeManagerInterface for type hints

parent 4db34676
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ namespace Drupal\linkchecker;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Link;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\Core\Queue\QueueFactory;
......@@ -25,7 +25,7 @@ class LinkCheckerService {
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......@@ -74,7 +74,7 @@ class LinkCheckerService {
/**
* Constructs a new LinkCheckerService object.
*/
public function __construct(EntityTypeManager $entityTypeManager, ConfigFactory $config, Client $httpClient, TimeInterface $time, QueueFactory $queueFactory, LinkStatusHandlerManager $statusHandlerManager) {
public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactory $config, Client $httpClient, TimeInterface $time, QueueFactory $queueFactory, LinkStatusHandlerManager $statusHandlerManager) {
$this->entityTypeManager = $entityTypeManager;
$this->linkcheckerSetting = $config->get('linkchecker.settings');
$this->httpClient = $httpClient;
......
......@@ -6,7 +6,7 @@ use Drupal\Component\Datetime\TimeInterface;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Database\Connection;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Entity\TranslatableInterface;
use Drupal\Core\Field\FieldItemListInterface;
......@@ -29,7 +29,7 @@ class LinkExtractorService {
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......@@ -71,7 +71,7 @@ class LinkExtractorService {
/**
* Constructs a new LinkExtractor object.
*/
public function __construct(LinkExtractorManager $extractorManager, EntityTypeManager $entityTypeManager, ConfigFactory $configFactory, RequestStack $requestStack, Connection $dbConnection, TimeInterface $time) {
public function __construct(LinkExtractorManager $extractorManager, EntityTypeManagerInterface $entityTypeManager, ConfigFactory $configFactory, RequestStack $requestStack, Connection $dbConnection, TimeInterface $time) {
$this->extractorManager = $extractorManager;
$this->entityTypeManager = $entityTypeManager;
$this->linkcheckerSetting = $configFactory->get('linkchecker.settings');
......
......@@ -2,7 +2,7 @@
namespace Drupal\linkchecker\Plugin\QueueWorker;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Queue\QueueWorkerBase;
use Drupal\linkchecker\LinkCheckerService;
......@@ -23,7 +23,7 @@ class LinkCheck extends QueueWorkerBase implements ContainerFactoryPluginInterfa
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......@@ -37,7 +37,7 @@ class LinkCheck extends QueueWorkerBase implements ContainerFactoryPluginInterfa
/**
* LinkExtract constructor.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManager $entityTypeManager, LinkCheckerService $linkChecker) {
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, LinkCheckerService $linkChecker) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entityTypeManager;
$this->linkChecker = $linkChecker;
......
......@@ -3,7 +3,7 @@
namespace Drupal\linkchecker\Plugin\QueueWorker;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Queue\QueueWorkerBase;
use Drupal\linkchecker\Plugin\LinkStatusHandlerManager;
......@@ -23,7 +23,7 @@ class LinkStatusHandle extends QueueWorkerBase implements ContainerFactoryPlugin
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManager
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......@@ -37,7 +37,7 @@ class LinkStatusHandle extends QueueWorkerBase implements ContainerFactoryPlugin
/**
* LinkExtract constructor.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManager $entityTypeManager, LinkStatusHandlerManager $statusHandlerManager) {
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, LinkStatusHandlerManager $statusHandlerManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entityTypeManager;
$this->statusHandlerManager = $statusHandlerManager;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment