You are here

class VisuallyImpairedModuleServiceProvider in Visually Impaired Support (module) 8

Modifies the language manager service.

Hierarchy

Expanded class hierarchy of VisuallyImpairedModuleServiceProvider

File

src/VisuallyImpairedModuleServiceProvider.php, line 11

Namespace

Drupal\visually_impaired_module
View source
class VisuallyImpairedModuleServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('http_middleware.page_cache');
    $definition
      ->setClass('Drupal\\visually_impaired_module\\StackMiddleware\\MyCache');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1
VisuallyImpairedModuleServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter