Mercurial > hg > isophonics-drupal-site
view core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraint.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\link\Plugin\Validation\Constraint; use Symfony\Component\Validator\Constraint; /** * Validation constraint for links receiving data allowed by its settings. * * @Constraint( * id = "LinkType", * label = @Translation("Link data valid for link type.", context = "Validation"), * ) */ class LinkTypeConstraint extends Constraint { public $message = "The path '@uri' is invalid."; }