Skip to content
Snippets Groups Projects
Commit a6582889 authored by catch's avatar catch
Browse files

Issue #3101138 by andypost, pratik_kamble, kishor_kolekar, alexpott:...

Issue #3101138 by andypost, pratik_kamble, kishor_kolekar, alexpott: UpdateSettingsForm should call parent constructor

(cherry picked from commit f737942b)
parent 3897b670
No related branches found
No related tags found
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
namespace Drupal\update; namespace Drupal\update;
use Drupal\Component\Utility\EmailValidatorInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
...@@ -23,23 +22,13 @@ class UpdateSettingsForm extends ConfigFormBase implements ContainerInjectionInt ...@@ -23,23 +22,13 @@ class UpdateSettingsForm extends ConfigFormBase implements ContainerInjectionInt
*/ */
protected $emailValidator; protected $emailValidator;
/**
* Constructs a new UpdateSettingsForm.
*
* @param \Drupal\Component\Utility\EmailValidatorInterface $email_validator
* The email validator.
*/
public function __construct(EmailValidatorInterface $email_validator) {
$this->emailValidator = $email_validator;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public static function create(ContainerInterface $container) { public static function create(ContainerInterface $container) {
return new static( $instance = parent::create($container);
$container->get('email.validator') $instance->emailValidator = $container->get('email.validator');
); return $instance;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment