EntityTestEntityLevel.php

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

Namespace

Drupal\entity_test\Plugin\Validation\Constraint

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\entity_test\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Attribute\HasNamedArguments;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;

/**
 * Constraint on entity level.
 */
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);
  }

}

Classes

Title Deprecated Summary
EntityTestEntityLevel Constraint on entity level.

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