class FieldWidgetConstraint in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\FieldWidgetConstraint
- 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\FieldWidgetConstraint
Supports validating widget constraints.
Plugin annotation
@Constraint(
id = "FieldWidgetConstraint",
label = @Translation("Field widget constraint.")
)
Hierarchy
- class \Drupal\entity_test\Plugin\Validation\Constraint\FieldWidgetConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of FieldWidgetConstraint
1 string reference to 'FieldWidgetConstraint'
- EntityTestConstraintViolation::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestConstraintViolation.php - Provides base field definitions for an entity type.
File
- core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Validation/ Constraint/ FieldWidgetConstraint.php, line 15
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintView source
class FieldWidgetConstraint extends Constraint {
public $message = 'Widget constraint has failed.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldWidgetConstraint:: |
public | property |