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

Breadcrumb

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

function ConstraintViolationInterface::getRoot

Returns the root element of the validation.

Return value

mixed The value that was passed originally to the validator when the validation was started. Because the validator traverses the object graph, the value at which the violation occurs is not necessarily the value that was originally validated.

1 method overrides ConstraintViolationInterface::getRoot()
ConstraintViolation::getRoot in vendor/symfony/validator/ConstraintViolation.php
Returns the root element of the validation.

File

vendor/symfony/validator/ConstraintViolationInterface.php, line 84

Class

ConstraintViolationInterface
A violation of a constraint that happened during validation.

Namespace

Symfony\Component\Validator

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