class VisuallyImpairedModuleServiceProvider in Visually Impaired Support (module) 8
Modifies the language manager service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\visually_impaired_module\VisuallyImpairedModuleServiceProvider
Expanded class hierarchy of VisuallyImpairedModuleServiceProvider
File
- src/
VisuallyImpairedModuleServiceProvider.php, line 11
Namespace
Drupal\visually_impaired_moduleView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |
VisuallyImpairedModuleServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |