function InternalViolation::getRoot

File

core/lib/Drupal/Core/Field/InternalViolation.php, line 108

Class

InternalViolation
Wraps a violation to allow arrayPropertyPath to be deprecated.

Namespace

Drupal\Core\Field

Code

public function getRoot() : mixed {
  return $this->violation
    ->getRoot();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.