
| Current Path : /var/www/html/store1/web/core/modules/inline_form_errors/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store1/web/core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php |
<?php
namespace Drupal\inline_form_errors;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Symfony\Component\DependencyInjection\Reference;
/**
* Overrides the form_error_handler service to enable inline form errors.
*/
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'),
]);
}
}