You are here

class FeedUrlConstraint in Drupal 8

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

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

Namesort descending Modifiers Type Description Overrides
FeedUrlConstraint::$message public property Overrides UniqueFieldConstraint::$message
UniqueFieldConstraint::validatedBy public function Returns the name of the class that validates this constraint.