You are here

public function LinkExternalProtocolsConstraintValidator::initialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraintValidator.php \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraintValidator::initialize()

Initializes the constraint validator.

Parameters

ExecutionContextInterface $context The current validation context:

Overrides ConstraintValidatorInterface::initialize

File

core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraintValidator.php, line 30
Contains \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraintValidator.

Class

LinkExternalProtocolsConstraintValidator
Validates the LinkExternalProtocols constraint.

Namespace

Drupal\link\Plugin\Validation\Constraint

Code

public function initialize(ExecutionContextInterface $context) {
  $this->context = $context;
}