You are here

class FieldWidgetConstraint in Drupal 9

Same name and namespace in other branches
  1. 8 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\Constraint
View source
class FieldWidgetConstraint extends Constraint {
  public $message = 'Widget constraint has failed.';

}

Members