LinkExtractorManager.php in Link checker 8
File
src/Plugin/LinkExtractorManager.php
View source
<?php
namespace Drupal\linkchecker\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class LinkExtractorManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/LinkExtractor', $namespaces, $module_handler, 'Drupal\\linkchecker\\Plugin\\LinkExtractorInterface', 'Drupal\\linkchecker\\Annotation\\LinkExtractor');
$this
->alterInfo('linkchecker_link_extractor_info');
$this
->setCacheBackend($cache_backend, 'linkchecker_link_extractor_plugins');
}
}