layout_paragraphs-1.0.x-dev/tests/modules/layout_paragraphs_entity_validator_test/src/Plugin/Validation/Constraint/LayoutParagraphsTestConstraint.php
tests/modules/layout_paragraphs_entity_validator_test/src/Plugin/Validation/Constraint/LayoutParagraphsTestConstraint.php
<?php
namespace Drupal\layout_paragraphs_entity_validator_test\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Checks that the submitted value is a unique integer.
*
* @Constraint(
* id = "LayoutParagraphsTestConstraint",
* label = @Translation("Layout Paragraphs Test Constraint", context = "Validation"),
* type = "string"
* )
*/
class LayoutParagraphsTestConstraint extends Constraint {
/**
* The message that will be shown if the value is not unique.
*
* @var string
*/
public $message = 'Failed Layout Paragraphs test validation.';
}
