You are here

class FeedTitleConstraint in Drupal 8

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

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