MetatagGroupPluginManager.php in Metatag 8
File
src/MetatagGroupPluginManager.php
View source
<?php
namespace Drupal\metatag;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class MetatagGroupPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
$subdir = 'Plugin/metatag/Group';
$plugin_definition_annotation_name = 'Drupal\\metatag\\Annotation\\MetatagGroup';
parent::__construct($subdir, $namespaces, $module_handler, NULL, $plugin_definition_annotation_name);
$this
->alterInfo('metatag_groups');
$this
->setCacheBackend($cache_backend, 'metatag_groups');
}
}