Version 1
[yaffs-website] / web / modules / contrib / metatag / src / MetatagGroupPluginManager.php
diff --git a/web/modules/contrib/metatag/src/MetatagGroupPluginManager.php b/web/modules/contrib/metatag/src/MetatagGroupPluginManager.php
new file mode 100644 (file)
index 0000000..b019ca9
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\metatag;
+
+use Drupal\Core\Cache\CacheBackendInterface;
+use Drupal\Core\Extension\ModuleHandlerInterface;
+use Drupal\Core\Plugin\DefaultPluginManager;
+
+/**
+ * A Plugin to manage your meta tag group.
+ */
+class MetatagGroupPluginManager extends DefaultPluginManager {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
+    $subdir = 'Plugin/metatag/Group';
+
+    // The name of the annotation class that contains the plugin definition.
+    $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');
+  }
+
+}