MediaTestConstraint.php
Same filename in other branches
- 9 core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php
- 8.9.x core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php
- 11.x core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php
Namespace
Drupal\media_test_source\Plugin\Validation\ConstraintFile
-
core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ Validation/ Constraint/ MediaTestConstraint.php
View source
<?php
namespace Drupal\media_test_source\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;
/**
* A media test constraint.
*/
class MediaTestConstraint extends SymfonyConstraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Inappropriate text.';
}
Classes
Title | Deprecated | Summary |
---|---|---|
MediaTestConstraint | A media test constraint. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.