You are here

class DomainLangServiceProvider in Domain Lang 8

Overrides the form_error_handler service to enable inline form errors.

Hierarchy

Expanded class hierarchy of DomainLangServiceProvider

File

src/DomainLangServiceProvider.php, line 13

Namespace

Drupal\domain_lang
View source
class DomainLangServiceProvider extends ServiceProviderBase implements ServiceModifierInterface {

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

}

Members

Namesort descending Modifiers Type Description Overrides
DomainLangServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1