class EntityTestEntityLevel

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevel.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestEntityLevel
  2. 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevel.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestEntityLevel
  3. 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevel.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestEntityLevel
  4. 8.9.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevel.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestEntityLevel

Constraint on entity level.

Attributes

#[Constraint(id: 'EntityTestEntityLevel', label: new TranslatableMarkup('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 15

Namespace

Drupal\entity_test\Plugin\Validation\Constraint
View source
class EntityTestEntityLevel extends SymfonyConstraint {
  public function __construct(mixed $options = NULL, public string $message = 'Entity level validation', ?array $groups = NULL, mixed $payload = NULL) {
    parent::__construct($options, $groups, $payload);
  }

}

Members

Title Sort descending Modifiers Object type Summary
EntityTestEntityLevel::__construct public function #[HasNamedArguments]

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