public function BlogapiProviderManager::__construct in Blog API 8
BlogapiProviderManager constructor.
Parameters
\Traversable $namespaces:
\Drupal\Core\Cache\CacheBackendInterface $cache_backend:
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:
Overrides DefaultPluginManager::__construct
File
- src/
BlogapiProviderManager.php, line 23
Class
- BlogapiProviderManager
- Class BlogapiProvider.
Namespace
Drupal\blogapiCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
$subdir = 'Plugin/BlogapiProvider';
$plugin_anotation = 'Drupal\\blogapi\\Annotation\\Provider';
parent::__construct($subdir, $namespaces, $module_handler, 'Drupal\\blogapi\\BlogapiProviderInterface', $plugin_anotation);
$this
->alterInfo('blogapi_providers_info');
$this
->setCacheBackend($cache_backend, 'blogapi_providers');
}