public function UserMailRequired::initialize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php \Drupal\user\Plugin\Validation\Constraint\UserMailRequired::initialize()
Initializes the constraint validator.
Parameters
ExecutionContextInterface $context The current validation context:
Overrides ConstraintValidatorInterface::initialize
File
- core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ UserMailRequired.php, line 46 - Contains \Drupal\user\Plugin\Validation\Constraint\UserMailRequired.
Class
- UserMailRequired
- Checks if the user's email address is provided if required.
Namespace
Drupal\user\Plugin\Validation\ConstraintCode
public function initialize(ExecutionContextInterface $context) {
$this->context = $context;
}