public function SiteAuditReportManager::__construct in Site Audit 8.3
Constructs a new SiteAuditReportManager object.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ SiteAuditReportManager.php, line 25
Class
- SiteAuditReportManager
- Provides the Site Audit Report plugin manager.
Namespace
Drupal\site_audit\PluginCode
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');
}