public property EntityTypeConstraint::$message

The default violation message.

Type: string

File

drupal/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityTypeConstraint.php, line 33
Contains \Drupal\Core\Validation\Constraint\EntityTypeConstraint.

Class

EntityTypeConstraint
Checks if a value is a valid entity type.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

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