public function ContentHubRequirementManager::__construct in Acquia Content Hub 8
Constructs a new ContentHubRequirementManager.
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.
Overrides DefaultPluginManager::__construct
File
- acquia_contenthub_diagnostic/
src/ ContentHubRequirementManager.php, line 25
Class
- ContentHubRequirementManager
- Provides an ContentHubRequirementManager plugin manager.
Namespace
Drupal\acquia_contenthub_diagnosticCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/ContentHubRequirement', $namespaces, $module_handler, 'Drupal\\acquia_contenthub_diagnostic\\ContentHubRequirementInterface', 'Drupal\\acquia_contenthub_diagnostic\\Annotation\\ContentHubRequirement');
$this
->setCacheBackend($cache_backend, 'contenthub_requirement_plugins');
}