class FeedUrlConstraint in Drupal 9
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Plugin/Validation/Constraint/FeedUrlConstraint.php \Drupal\aggregator\Plugin\Validation\Constraint\FeedUrlConstraint
Supports validating feed URLs.
Plugin annotation
@Constraint(
id = "FeedUrl",
label = @Translation("Feed URL", context = "Validation")
)
Hierarchy
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint extends \Symfony\Component\Validator\Constraint
- class \Drupal\aggregator\Plugin\Validation\Constraint\FeedUrlConstraint
Expanded class hierarchy of FeedUrlConstraint
File
- core/
modules/ aggregator/ src/ Plugin/ Validation/ Constraint/ FeedUrlConstraint.php, line 15
Namespace
Drupal\aggregator\Plugin\Validation\ConstraintView source
class FeedUrlConstraint extends UniqueFieldConstraint {
public $message = 'A feed with this URL %value already exists. Enter a unique URL.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedUrlConstraint:: |
public | property |
Overrides UniqueFieldConstraint:: |
|
UniqueFieldConstraint:: |
public | function |