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.';

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