class FeedUrlConstraint
Same name in other branches
- 8.9.x 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 extends \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint
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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
FeedUrlConstraint::$message | public | property | Overrides UniqueFieldConstraint::$message | |
UniqueFieldConstraint::validatedBy | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.