class 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 14
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintView source
class EntityTestEntityLevel extends SymfonyConstraint {
/**
* The error message.
*
* @var string
*/
public $message = 'Entity level validation';
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| EntityTestEntityLevel::$message | public | property | The error message. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.