ConstraintViolationBuilder::$cause

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::cause
  2. 8.9.x core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::cause
  3. 10 core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php \Drupal\Core\Validation\ConstraintViolationBuilder::cause

The cause.

Type: cause

File

core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php, line 35

Class

ConstraintViolationBuilder
A constraint violation builder for the basic Symfony validator.

Namespace

Drupal\Core\Validation

Code

protected mixed $cause = NULL;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.