Same name and namespace in other branches
- 8.9.x core/modules/filter/src/FilterPluginManager.php \Drupal\filter\FilterPluginManager
- 9 core/modules/filter/src/FilterPluginManager.php \Drupal\filter\FilterPluginManager
Manages text processing filters.
Hierarchy
- class \Drupal\filter\FilterPluginManager extends \Drupal\Core\Plugin\DefaultPluginManager implements FallbackPluginManagerInterface
Expanded class hierarchy of FilterPluginManager
See also
\Drupal\filter\Annotation\Filter
\Drupal\filter\Plugin\FilterInterface
\Drupal\filter\Plugin\FilterBase
1 string reference to 'FilterPluginManager'
- filter.services.yml in core/
modules/ filter/ filter.services.yml - core/modules/filter/filter.services.yml
1 service uses FilterPluginManager
- plugin.manager.filter in core/
modules/ filter/ filter.services.yml - Drupal\filter\FilterPluginManager
File
- core/
modules/ filter/ src/ FilterPluginManager.php, line 20
Namespace
Drupal\filterView source
class FilterPluginManager extends DefaultPluginManager implements FallbackPluginManagerInterface {
/**
* Constructs a FilterPluginManager object.
*
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* Cache backend instance to use.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler to invoke the alter hook with.
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Filter', $namespaces, $module_handler, 'Drupal\\filter\\Plugin\\FilterInterface', Filter::class, 'Drupal\\filter\\Annotation\\Filter');
$this
->alterInfo('filter_info');
$this
->setCacheBackend($cache_backend, 'filter_plugins');
}
/**
* {@inheritdoc}
*/
public function getFallbackPluginId($plugin_id, array $configuration = []) {
return 'filter_null';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FilterPluginManager:: |
public | function |
Gets a fallback id for a missing plugin. Overrides FallbackPluginManagerInterface:: |
|
FilterPluginManager:: |
public | function | Constructs a FilterPluginManager object. |