Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstraintViolationBuilderInterface.php

function ConstraintViolationBuilderInterface::atPath

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

$this

2 methods override ConstraintViolationBuilderInterface::atPath()
ConstraintViolationBuilder::atPath in core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php
Stores the property path at which the violation should be generated.
ConstraintViolationBuilder::atPath in vendor/symfony/validator/Violation/ConstraintViolationBuilder.php
Stores the property path at which the violation should be generated.

File

vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php, line 36

Class

ConstraintViolationBuilderInterface
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.

Namespace

Symfony\Component\Validator\Violation

Code

public function atPath(string $path) : static;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal