You are here

public property BundleConstraint::$message in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraint::message
  2. 9 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraint::message

The default violation message.

Type: string

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php, line 23

Class

BundleConstraint
Checks if a value is a valid entity type.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public $message = 'The entity must be of bundle %bundle.';