You are here

FieldWidgetConstraint.php in Zircon Profile 8

File

core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/FieldWidgetConstraint.php
View 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

Namesort descending Description
FieldWidgetConstraint Supports validating widget constraints.