class FormatterPluginManager in RESTful 7.2
Hierarchy
- class \Drupal\restful\Plugin\FormatterPluginManager extends \Drupal\Core\Plugin\DefaultPluginManager
Expanded class hierarchy of FormatterPluginManager
2 files declare their use of FormatterPluginManager
- FormatterManager.php in src/
Formatter/ FormatterManager.php - Contains \Drupal\restful\Formatter\FormatterManager
- restful.admin.inc in ./
restful.admin.inc
File
- src/
Plugin/ FormatterPluginManager.php, line 13 - Contains \Drupal\restful\Plugin\FormatterPluginManager.
Namespace
Drupal\restful\PluginView source
class FormatterPluginManager extends DefaultPluginManager {
/**
* Constructs FormatterPluginManager.
*
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations.
* @param \DrupalCacheInterface $cache_backend
* Cache backend instance to use.
*/
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');
}
/**
* FormatterPluginManager factory method.
*
* @param string $bin
* The cache bin for the plugin manager.
*
* @return FormatterPluginManager
* The created manager.
*/
public static function create($bin = 'cache') {
return new static(Module::getNamespaces(), _cache_get_object($bin));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormatterPluginManager:: |
public static | function | FormatterPluginManager factory method. | |
FormatterPluginManager:: |
public | function | Constructs FormatterPluginManager. |