You are here

public function LayoutBuilderAtServiceProvider::register in Layout Builder Asymmetric Translation 8.2

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

Overrides ServiceProviderInterface::register

File

src/LayoutBuilderAtServiceProvider.php, line 16

Class

LayoutBuilderAtServiceProvider
Layout Builder At service provider.

Namespace

Drupal\layout_builder_at

Code

public function register(ContainerBuilder $container) {
  if ($container
    ->hasDefinition('layout_builder.get_block_dependency_subscriber')) {
    $definition = $container
      ->getDefinition('layout_builder.get_block_dependency_subscriber');
    $definition
      ->setClass('\\Drupal\\layout_builder_at\\EventSubscriber\\SetInlineBlockDependencyWithContextTranslation');
  }
}