Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Plugin / Validation / Constraint / EntityTestCompositeConstraint.php
1 <?php
2
3 namespace Drupal\entity_test\Plugin\Validation\Constraint;
4
5 use Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase;
6
7 /**
8  * Constraint with multiple fields.
9  *
10  * @Constraint(
11  *   id = "EntityTestComposite",
12  *   label = @Translation("Constraint with multiple fields."),
13  *   type = "entity"
14  * )
15  */
16 class EntityTestCompositeConstraint extends CompositeConstraintBase {
17
18   public $message = 'Multiple fields are validated';
19
20   /**
21    * {@inheritdoc}
22    */
23   public function coversFields() {
24     return ['name', 'type'];
25   }
26
27 }