ErrorServiceTestServiceProvider.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
  2. 10 core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
  3. 11.x core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php

Namespace

Drupal\error_service_test

File

core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php

View source
<?php

namespace Drupal\error_service_test;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceModifierInterface;
class ErrorServiceTestServiceProvider implements ServiceModifierInterface {
    
    /**
     * The in-situ container builder.
     *
     * @var \Drupal\Core\DependencyInjection\ContainerBuilder
     */
    public static $containerBuilder;
    
    /**
     * {@inheritdoc}
     */
    public function alter(ContainerBuilder $container) {
        static::$containerBuilder = $container;
    }

}

Classes

Title Deprecated Summary
ErrorServiceTestServiceProvider

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.