class PurgeUiRemoveBlockPluginsTestServiceProvider in Purge 8.3
Replaces the queuers and processors plugin managers with failing stubs.
Hierarchy
- class \Drupal\purge_ui_remove_block_plugins_test\PurgeUiRemoveBlockPluginsTestServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of PurgeUiRemoveBlockPluginsTestServiceProvider
File
- modules/
purge_ui/ tests/ modules/ purge_ui_remove_block_plugins_test/ src/ PurgeUiRemoveBlockPluginsTestServiceProvider.php, line 11
Namespace
Drupal\purge_ui_remove_block_plugins_testView source
class PurgeUiRemoveBlockPluginsTestServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$purge_queuer = $container
->getDefinition('plugin.manager.purge.queuer');
$purge_queuer
->setClass('Drupal\\purge_ui_remove_block_plugins_test\\BlackholePluginManager');
$purge_processor = $container
->getDefinition('plugin.manager.purge.processor');
$purge_processor
->setClass('Drupal\\purge_ui_remove_block_plugins_test\\BlackholePluginManager');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PurgeUiRemoveBlockPluginsTestServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |