You are here

public function ExecutionContextInterface::getRoot in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ExecutionContextInterface.php \Symfony\Component\Validator\ExecutionContextInterface::getRoot()

Returns the value at which validation was started in the object graph.

The validator, when given an object, traverses the properties and related objects and their properties. The root of the validation is the object from which the traversal started.

The current value is returned by {@link getValue}.

Return value

mixed The root value of the validation.

3 methods override ExecutionContextInterface::getRoot()
ExecutionContext::getRoot in vendor/symfony/validator/ExecutionContext.php
Returns the value at which validation was started in the object graph.
ExecutionContext::getRoot in vendor/symfony/validator/Context/ExecutionContext.php
Returns the value at which validation was started in the object graph.
ExecutionContext::getRoot in core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php
Returns the value at which validation was started in the object graph.

File

vendor/symfony/validator/ExecutionContextInterface.php, line 215

Class

ExecutionContextInterface
Stores the validator's state during validation.

Namespace

Symfony\Component\Validator

Code

public function getRoot();