ExecutionContext

Defines an execution context class.

We do not use the context provided by Symfony as it is marked internal, so this class is pretty much the same, but has some code style changes as well as exceptions for methods we don't support.

Hierarchy

  • class \Drupal\Core\TypedData\Validation\ExecutionContext implements ExecutionContextInterface

File

core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 21

Namespace

Drupal\Core\TypedData\Validation

Members

Name Modifiers Type Description
ExecutionContext::$constraint protected property The currently validated constraint.
ExecutionContext::$data protected property The currently validated typed data object.
ExecutionContext::$group protected property The currently validated group.
ExecutionContext::$metadata protected property The current validation metadata.
ExecutionContext::$propertyPath protected property The property path leading to the current value.
ExecutionContext::$root protected property The root value of the validated object graph.
ExecutionContext::$translationDomain protected property
ExecutionContext::$translator protected property
ExecutionContext::$validatedConstraints protected property Stores which class constraint has been validated for which object.
ExecutionContext::$validatedObjects protected property Stores which objects have been validated in which group.
ExecutionContext::$validator protected property
ExecutionContext::$value protected property The currently validated value.
ExecutionContext::$violations protected property The violations generated in the current context.
ExecutionContext::addViolation public function
ExecutionContext::addViolationAt public function
ExecutionContext::buildViolation public function Returns a builder for adding a violation with extended information. Overrides ExecutionContextInterface::buildViolation
ExecutionContext::getClassName public function
ExecutionContext::getGroup public function
ExecutionContext::getMetadata public function
ExecutionContext::getMetadataFactory public function
ExecutionContext::getObject public function Returns the currently validated object. Overrides ExecutionContextInterface::getObject
ExecutionContext::getPropertyName public function
ExecutionContext::getPropertyPath public function
ExecutionContext::getRoot public function
ExecutionContext::getValidator public function Returns the validator. Overrides ExecutionContextInterface::getValidator
ExecutionContext::getValue public function
ExecutionContext::getViolations public function
ExecutionContext::isConstraintValidated public function Returns whether a constraint was validated for an object. Overrides ExecutionContextInterface::isConstraintValidated
ExecutionContext::isGroupValidated public function Returns whether an object was validated in a specific validation group. Overrides ExecutionContextInterface::isGroupValidated
ExecutionContext::isObjectInitialized public function Returns whether an object was initialized. Overrides ExecutionContextInterface::isObjectInitialized
ExecutionContext::markConstraintAsValidated public function Marks a constraint as validated for an object. Overrides ExecutionContextInterface::markConstraintAsValidated
ExecutionContext::markGroupAsValidated public function Marks an object as validated in a specific validation group. Overrides ExecutionContextInterface::markGroupAsValidated
ExecutionContext::markObjectAsInitialized public function Marks that an object was initialized. Overrides ExecutionContextInterface::markObjectAsInitialized
ExecutionContext::setConstraint public function Sets the currently validated constraint. Overrides ExecutionContextInterface::setConstraint
ExecutionContext::setGroup public function Sets the currently validated group. Overrides ExecutionContextInterface::setGroup
ExecutionContext::setNode public function Sets the currently validated value. Overrides ExecutionContextInterface::setNode
ExecutionContext::validate public function
ExecutionContext::validateValue public function
ExecutionContext::__construct public function Creates a new ExecutionContext.
doc_Drupal
2016-10-29 09:09:26
Comments
Leave a Comment

Please login to continue.