You are here

class FeedTitleConstraint in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Plugin/Validation/Constraint/FeedTitleConstraint.php \Drupal\aggregator\Plugin\Validation\Constraint\FeedTitleConstraint

Supports validating feed titles.

Plugin annotation


@Constraint(
  id = "FeedTitle",
  label = @Translation("Feed title", context = "Validation")
)

Hierarchy

  • class \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of FeedTitleConstraint

File

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

Namespace

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

}

Members