FieldWidgetConstraint.php in Zircon Profile 8.0
Same filename and directory in other branches
File
core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.phpView source
<?php
/**
* @file
* Contains \Drupal\entity_test\Plugin\Validation\Constraint\FieldWidgetConstraint.
*/
namespace Drupal\entity_test\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Supports validating widget constraints.
*
* @Constraint(
* id = "FieldWidgetConstraint",
* label = @Translation("Field widget constraint.")
* )
*/
class FieldWidgetConstraint extends Constraint {
public $message = 'Widget constraint has failed.';
}
Classes
Name | Description |
---|---|
FieldWidgetConstraint | Supports validating widget constraints. |