function 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}.
2 methods override ExecutionContextInterface::getRoot()
- ExecutionContext::getRoot in core/
lib/ Drupal/ Core/ Validation/ 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.
File
-
vendor/
symfony/ validator/ Context/ ExecutionContextInterface.php, line 205
Class
- ExecutionContextInterface
- The context of a validation run.
Namespace
Symfony\Component\Validator\ContextCode
public function getRoot() : mixed;