You are here

public function VisuallyImpairedModuleServiceProvider::alter in Visually Impaired Support (module) 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

src/VisuallyImpairedModuleServiceProvider.php, line 16

Class

VisuallyImpairedModuleServiceProvider
Modifies the language manager service.

Namespace

Drupal\visually_impaired_module

Code

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