EntityHasFieldConstraint::$notFieldableMessage

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraint::notFieldableMessage
  2. 8.9.x core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraint::notFieldableMessage
  3. 10 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraint::notFieldableMessage

The violation message for non-fieldable entities.

Type: string

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php, line 31

Class

EntityHasFieldConstraint
Checks if a value is an entity that has a specific field.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public $notFieldableMessage = 'The entity does not support fields.';

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