3 namespace Drupal\metatag;
5 use Drupal\Core\Cache\CacheBackendInterface;
6 use Drupal\Core\Extension\ModuleHandlerInterface;
7 use Drupal\Core\Plugin\DefaultPluginManager;
10 * A Plugin to manage your meta tag group.
12 class MetatagGroupPluginManager extends DefaultPluginManager {
17 public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
18 $subdir = 'Plugin/metatag/Group';
20 // The name of the annotation class that contains the plugin definition.
21 $plugin_definition_annotation_name = 'Drupal\metatag\Annotation\MetatagGroup';
23 parent::__construct($subdir, $namespaces, $module_handler, NULL, $plugin_definition_annotation_name);
25 $this->alterInfo('metatag_groups');
27 $this->setCacheBackend($cache_backend, 'metatag_groups');