comparison core/modules/update/src/UpdateSettingsForm.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
1 <?php 1 <?php
2 2
3 namespace Drupal\update; 3 namespace Drupal\update;
4 4
5 use Drupal\Component\Utility\EmailValidatorInterface;
5 use Drupal\Core\DependencyInjection\ContainerInjectionInterface; 6 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
6 use Symfony\Component\DependencyInjection\ContainerInterface; 7 use Symfony\Component\DependencyInjection\ContainerInterface;
7 use Drupal\Core\Form\ConfigFormBase; 8 use Drupal\Core\Form\ConfigFormBase;
8 use Drupal\Core\Form\FormStateInterface; 9 use Drupal\Core\Form\FormStateInterface;
9 use Egulias\EmailValidator\EmailValidator;
10 10
11 /** 11 /**
12 * Configure update settings for this site. 12 * Configure update settings for this site.
13 * 13 *
14 * @internal 14 * @internal
16 class UpdateSettingsForm extends ConfigFormBase implements ContainerInjectionInterface { 16 class UpdateSettingsForm extends ConfigFormBase implements ContainerInjectionInterface {
17 17
18 /** 18 /**
19 * The email validator. 19 * The email validator.
20 * 20 *
21 * @var \Egulias\EmailValidator\EmailValidator 21 * @var \Drupal\Component\Utility\EmailValidatorInterface
22 */ 22 */
23 protected $emailValidator; 23 protected $emailValidator;
24 24
25 /** 25 /**
26 * Constructs a new UpdateSettingsForm. 26 * Constructs a new UpdateSettingsForm.
27 * 27 *
28 * @param \Egulias\EmailValidator\EmailValidator $email_validator 28 * @param \Drupal\Component\Utility\EmailValidatorInterface $email_validator
29 * The email validator. 29 * The email validator.
30 */ 30 */
31 public function __construct(EmailValidator $email_validator) { 31 public function __construct(EmailValidatorInterface $email_validator) {
32 $this->emailValidator = $email_validator; 32 $this->emailValidator = $email_validator;
33 } 33 }
34 34
35 /** 35 /**
36 * {@inheritdoc} 36 * {@inheritdoc}