class FeedTitleConstraint in Drupal 9
Same name and namespace in other branches
- 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
- class \Drupal\aggregator\Plugin\Validation\Constraint\FeedTitleConstraint
Expanded class hierarchy of FeedTitleConstraint
File
- core/
modules/ aggregator/ src/ Plugin/ Validation/ Constraint/ FeedTitleConstraint.php, line 15
Namespace
Drupal\aggregator\Plugin\Validation\ConstraintView source
class FeedTitleConstraint extends UniqueFieldConstraint {
public $message = 'A feed named %value already exists. Enter a unique title.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedTitleConstraint:: |
public | property |
Overrides UniqueFieldConstraint:: |
|
UniqueFieldConstraint:: |
public | function |