class FieldWidgetConstraint
Same name in other branches
- 8.9.x 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
- 11.x 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
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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FieldWidgetConstraint::$message | public | property |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.