RestTestConstraint.php in Drupal 10
File
core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.phpView source
<?php
namespace Drupal\rest_test\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Adds some validations for a REST test field.
*
* @Constraint(
* id = "rest_test_validation",
* label = @Translation("REST test validation", context = "Validation")
* )
*
* @see \Drupal\Core\TypedData\OptionsProviderInterface
*/
class RestTestConstraint extends Constraint {
public $message = 'REST test validation failed';
}
Classes
Name | Description |
---|---|
RestTestConstraint | Adds some validations for a REST test field. |