You are here

class EntityTestEntityLevel in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevel.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestEntityLevel

Constraint on entity entity level.

Plugin annotation


@Constraint(
  id = "EntityTestEntityLevel",
  label = @Translation("Constraint on the entity level."),
  type = "entity"
)

Hierarchy

  • class \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestEntityLevel extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of EntityTestEntityLevel

File

core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevel.php, line 16

Namespace

Drupal\entity_test\Plugin\Validation\Constraint
View source
class EntityTestEntityLevel extends Constraint {
  public $message = 'Entity level validation';

}

Members