You are here

class PurgeUiRemoveBlockPluginsTestServiceProvider in Purge 8.3

Replaces the queuers and processors plugin managers with failing stubs.

Hierarchy

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_test
View 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