class FeedTitleConstraint

Same name in other branches
  1. 8.9.x 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
    • class \Drupal\aggregator\Plugin\Validation\Constraint\FeedTitleConstraint extends \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint

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

Title Sort descending Modifiers Object type Summary Overriden Title
FeedTitleConstraint::$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.