Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
CRAP | |
100.00% |
0 / 0 |
| FeedUrlConstraint | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
0 | |
100.00% |
0 / 0 |
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\aggregator\Plugin\Validation\Constraint\FeedUrlConstraint. | |
| */ | |
| namespace Drupal\aggregator\Plugin\Validation\Constraint; | |
| use Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint; | |
| /** | |
| * Supports validating feed URLs. | |
| * | |
| * @Constraint( | |
| * id = "FeedUrl", | |
| * label = @Translation("Feed URL", context = "Validation") | |
| * ) | |
| */ | |
| class FeedUrlConstraint extends UniqueFieldConstraint { | |
| public $message = 'A feed with this URL %value already exists. Enter a unique URL.'; | |
| } |