ConstraintViolationBuilder::atPath

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

public function atPath($path) 
 {
  $this->propertyPath = PropertyPath::append($this->propertyPath, $path);

  return $this;
}
doc_Drupal
2016-10-29 08:56:12
Comments
Leave a Comment

Please login to continue.