class FeedUrlConstraint in Drupal 8
Same name and namespace in other branches
- 9 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 | Returns the name of the class that validates this constraint. |