SiteAuditReportManager.php in Site Audit 8.3
File
src/Plugin/SiteAuditReportManager.php
View source
<?php
namespace Drupal\site_audit\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class SiteAuditReportManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/SiteAuditReport', $namespaces, $module_handler, 'Drupal\\site_audit\\Plugin\\SiteAuditReportInterface', 'Drupal\\site_audit\\Annotation\\SiteAuditReport');
$this
->alterInfo('site_audit_site_audit_report_info');
$this
->setCacheBackend($cache_backend, 'site_audit_site_audit_report_plugins');
}
public function getDefinitions() {
$definitions = parent::getDefinitions();
ksort($definitions);
return $definitions;
}
}