You are here

FeedTitleConstraint.php in Zircon Profile 8.0

File

core/modules/aggregator/src/Plugin/Validation/Constraint/FeedTitleConstraint.php
View source
<?php

/**
 * @file
 * Contains \Drupal\aggregator\Plugin\Validation\Constraint\FeedTitleConstraint.
 */
namespace Drupal\aggregator\Plugin\Validation\Constraint;

use Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint;

/**
 * Supports validating feed titles.
 *
 * @Constraint(
 *   id = "FeedTitle",
 *   label = @Translation("Feed title", context = "Validation")
 * )
 */
class FeedTitleConstraint extends UniqueFieldConstraint {
  public $message = 'A feed named %value already exists. Enter a unique title.';

}

Classes

Namesort descending Description
FeedTitleConstraint Supports validating feed titles.