public function RecursiveContextualValidator::atPath in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Validator/RecursiveContextualValidator.php \Symfony\Component\Validator\Validator\RecursiveContextualValidator::atPath()
- 8 core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php \Drupal\Core\TypedData\Validation\RecursiveContextualValidator::atPath()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Validator/RecursiveContextualValidator.php \Symfony\Component\Validator\Validator\RecursiveContextualValidator::atPath()
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
- vendor/
symfony/ validator/ Validator/ RecursiveContextualValidator.php, line 96
Class
- RecursiveContextualValidator
- Recursive implementation of {@link ContextualValidatorInterface}.
Namespace
Symfony\Component\Validator\ValidatorCode
public function atPath($path) {
$this->defaultPropertyPath = $this->context
->getPropertyPath($path);
return $this;
}