You are here

public function PreprocessEventDispatcherServiceProvider::register in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/PreprocessEventDispatcherServiceProvider.php \Drupal\preprocess_event_dispatcher\PreprocessEventDispatcherServiceProvider::register()

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

Overrides ServiceProviderInterface::register

File

modules/preprocess_event_dispatcher/src/PreprocessEventDispatcherServiceProvider.php, line 17

Class

PreprocessEventDispatcherServiceProvider
Class PreprocessEventServiceProvider.

Namespace

Drupal\preprocess_event_dispatcher

Code

public function register(ContainerBuilder $container) : void {
  $container
    ->addCompilerPass(new PreprocessEventPass());
}