class InlineFormErrorsServiceProvider
Same name in other branches
- 9 core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php \Drupal\inline_form_errors\InlineFormErrorsServiceProvider
- 8.9.x core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php \Drupal\inline_form_errors\InlineFormErrorsServiceProvider
- 11.x core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php \Drupal\inline_form_errors\InlineFormErrorsServiceProvider
Overrides the form_error_handler service to enable inline form errors.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface, \Drupal\Core\DependencyInjection\ServiceModifierInterface
- class \Drupal\inline_form_errors\InlineFormErrorsServiceProvider extends \Drupal\Core\DependencyInjection\ServiceProviderBase
Expanded class hierarchy of InlineFormErrorsServiceProvider
File
-
core/
modules/ inline_form_errors/ src/ InlineFormErrorsServiceProvider.php, line 12
Namespace
Drupal\inline_form_errorsView source
class InlineFormErrorsServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$container->getDefinition('form_error_handler')
->setClass(FormErrorHandler::class)
->setArguments([
new Reference('string_translation'),
new Reference('renderer'),
new Reference('messenger'),
]);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
InlineFormErrorsServiceProvider::alter | public | function | Modifies existing service definitions. | Overrides ServiceProviderBase::alter | |
ServiceProviderBase::register | public | function | Registers services to the container. | Overrides ServiceProviderInterface::register | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.