public function ValidationVisitor::getRoot

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

Return value

mixed The root value.

Overrides GlobalExecutionContextInterface::getRoot

See also

ExecutionContextInterface::getRoot

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ValidationVisitor.php, line 177

Class

ValidationVisitor
Default implementation of {@link ValidationVisitorInterface} and {@link GlobalExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

public function getRoot() {
  return $this->root;
}