class DomainLangServiceProvider in Domain Lang 8
Overrides the form_error_handler service to enable inline form errors.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\domain_lang\DomainLangServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of DomainLangServiceProvider
File
- src/
DomainLangServiceProvider.php, line 13
Namespace
Drupal\domain_langView source
class DomainLangServiceProvider extends ServiceProviderBase implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$container
->getDefinition('language_negotiator')
->setClass(LanguageNegotiator::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DomainLangServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |