interface ContextualValidatorInterface

Extends the contextual validator validate method by a new parameter.

Hierarchy

File

core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php, line 10

Namespace

Drupal\Core\TypedData\Validation

Members

Name Modifiers Type Description
ContextualValidatorInterface::atPath public function Appends the given path to the property path of the context.
ContextualValidatorInterface::getViolations public function Returns the violations that have been generated so far in the context of the validator.
ContextualValidatorInterface::validate public function Validates a value against a constraint or a list of constraints. Overrides ContextualValidatorInterface::validate
ContextualValidatorInterface::validateProperty public function Validates a property of an object against the constraints specified for this property.
ContextualValidatorInterface::validatePropertyValue public function Validates a value against the constraints specified for an object's property.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Validation!ContextualValidatorInterface.php/interface/ContextualValidatorInterface/8.1.x