Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExecutionContextInterface.php

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\Context

Code

public function getRoot() : mixed;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal