Interim commit.
[yaffs-website] / web / modules / contrib / entity_browser / src / Annotation / EntityBrowserWidgetValidation.php
1 <?php
2
3 namespace Drupal\entity_browser\Annotation;
4
5 use Drupal\Component\Annotation\Plugin;
6
7 /**
8  * Defines an entity browser widget validation annotation object.
9  *
10  * @see hook_entity_browser_widget_validation_info_alter()
11  *
12  * @Annotation
13  */
14 class EntityBrowserWidgetValidation extends Plugin {
15
16   /**
17    * The plugin ID.
18    *
19    * @var string
20    */
21   public $id;
22
23   /**
24    * The human-readable name of the widget validator.
25    *
26    * @ingroup plugin_translatable
27    *
28    * @var \Drupal\Core\Annotation\Translation
29    */
30   public $label;
31
32   /**
33    * (Optional) The data type plugin ID, for which a constraint should be added.
34    *
35    * @var string
36    */
37   public $data_type;
38
39   /**
40    * (Optional) The constraint ID.
41    *
42    * @var string
43    */
44   public $constraint;
45 }