RestTestConstraint.php
Same filename in other branches
- 9 core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php
- 8.9.x core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php
- 11.x core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php
Namespace
Drupal\rest_test\Plugin\Validation\ConstraintFile
-
core/
modules/ rest/ tests/ modules/ rest_test/ src/ Plugin/ Validation/ Constraint/ RestTestConstraint.php
View source
<?php
namespace Drupal\rest_test\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;
/**
* Adds some validations for a REST test field.
*
* @see \Drupal\Core\TypedData\OptionsProviderInterface
*/
class RestTestConstraint extends SymfonyConstraint {
public $message = 'REST test validation failed';
}
Classes
Title | Deprecated | Summary |
---|---|---|
RestTestConstraint | Adds some validations for a REST test field. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.