RecursiveContextualValidator::atPath

public RecursiveContextualValidator::atPath($path)

Appends the given path to the property path of the context.

If called multiple times, the path will always be reset to the context's original path with the given path appended to it.

Parameters

string $path The path to append:

Return value

ContextualValidatorInterface This validator

Overrides ContextualValidatorInterface::atPath

File

core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 75

Class

RecursiveContextualValidator
Defines a recursive contextual validator for Typed Data.

Namespace

Drupal\Core\TypedData\Validation

Code

1
2
3
4
5
public function atPath($path) {
  // @todo This method is not used at the moment, see
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.