You are here

public function DomainLangServiceProvider::alter in Domain Lang 8

Modifies existing service definitions.

Parameters

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

Overrides ServiceProviderBase::alter

File

src/DomainLangServiceProvider.php, line 18

Class

DomainLangServiceProvider
Overrides the form_error_handler service to enable inline form errors.

Namespace

Drupal\domain_lang

Code

public function alter(ContainerBuilder $container) {
  $container
    ->getDefinition('language_negotiator')
    ->setClass(LanguageNegotiator::class);
}