public ConstraintViolationBuilder::atPath($path)
Stores the property path at which the violation should be generated.
The passed path will be appended to the current property path of the execution context.
Parameters
string $path The property path:
Return value
ConstraintViolationBuilderInterface This builder
Overrides ConstraintViolationBuilderInterface::atPath
File
- core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 136
Class
- ConstraintViolationBuilder
- Defines a constraint violation builder for the Typed Data validator.
Namespace
Drupal\Core\TypedData\Validation
Code
1 2 3 4 5 6 | public function atPath( $path ) { $this ->propertyPath = PropertyPath::append( $this ->propertyPath, $path ); return $this ; } |
Please login to continue.