You are here

class FeedUrlConstraint in Drupal 9

Same name and namespace in other branches
  1. 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

Expanded class hierarchy of FeedUrlConstraint

File

core/modules/aggregator/src/Plugin/Validation/Constraint/FeedUrlConstraint.php, line 15

Namespace

Drupal\aggregator\Plugin\Validation\Constraint
View source
class FeedUrlConstraint extends UniqueFieldConstraint {
  public $message = 'A feed with this URL %value already exists. Enter a unique URL.';

}

Members