FeedUrlConstraint.php in Drupal 8
Same filename and directory in other branches
File
core/modules/aggregator/src/Plugin/Validation/Constraint/FeedUrlConstraint.phpView source
<?php
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.';
}
Classes
Name | Description |
---|---|
FeedUrlConstraint | Supports validating feed URLs. |