EntityTestEntityLevel.php

Same filename in other branches
  1. 8.9.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. 11.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

namespace Drupal\entity_test\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Constraint on entity level.
 *
 * @Constraint(
 *   id = "EntityTestEntityLevel",
 *   label = @Translation("Constraint on the entity level."),
 *   type = "entity"
 * )
 */
class EntityTestEntityLevel extends Constraint {
    public $message = 'Entity level validation';

}

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.