Added missing modules, including some as submodules.
[yaffs-website] / web / modules / contrib / linkit / src / AttributeManager.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\linkit\AttributeManager.
6  */
7
8 namespace Drupal\linkit;
9
10 use Drupal\Core\Cache\CacheBackendInterface;
11 use Drupal\Core\Extension\ModuleHandlerInterface;
12 use Drupal\Core\Plugin\DefaultPluginManager;
13
14 /**
15  * Manages attributes.
16  */
17 class AttributeManager extends DefaultPluginManager {
18
19   /**
20    * {@inheritdoc}
21    */
22   public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
23     parent::__construct('Plugin/Linkit/Attribute', $namespaces, $module_handler, 'Drupal\linkit\AttributeInterface', 'Drupal\linkit\Annotation\Attribute');
24
25     $this->alterInfo('linkit_attribute');
26     $this->setCacheBackend($cache_backend, 'linkit_attributes');
27   }
28
29 }