public function FormatterPluginManager::__construct in RESTful 7.2
Constructs FormatterPluginManager.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\DrupalCacheInterface $cache_backend: Cache backend instance to use.
File
- src/
Plugin/ FormatterPluginManager.php, line 24 - Contains \Drupal\restful\Plugin\FormatterPluginManager.
Class
Namespace
Drupal\restful\PluginCode
public function __construct(\Traversable $namespaces, \DrupalCacheInterface $cache_backend) {
parent::__construct('Plugin/formatter', $namespaces, 'Drupal\\restful\\Plugin\\formatter\\FormatterInterface', '\\Drupal\\restful\\Annotation\\Formatter');
$this
->setCacheBackend($cache_backend, 'formatter_plugins');
$this
->alterInfo('formatter_plugin');
}