FieldWidgetConstraint.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php
  2. 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php
  3. 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php

Namespace

Drupal\entity_test\Plugin\Validation\Constraint

File

core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php

View source
<?php

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

Title Deprecated Summary
FieldWidgetConstraint Supports validating widget constraints.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.