You are here

class DateRecurRruleConstraint in Recurring Dates Field 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRruleConstraint
  2. 3.0.x src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRruleConstraint
  3. 3.1.x src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRruleConstraint

Validates RRULE strings.

Plugin annotation


@Constraint(
  id = "DateRecurRrule",
  label = @Translation("Validates RRULEs", context = "Validation"),
)

Hierarchy

  • class \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRruleConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of DateRecurRruleConstraint

File

src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php, line 17

Namespace

Drupal\date_recur\Plugin\Validation\Constraint
View source
class DateRecurRruleConstraint extends Constraint {

  /**
   * Violation message for an invalid RRULE.
   *
   * @var string
   */
  public $invalidRrule = 'Invalid RRULE.';

}

Members

Namesort descending Modifiers Type Description Overrides
DateRecurRruleConstraint::$invalidRrule public property Violation message for an invalid RRULE.