SU-SWS/stanford_profile_helper

View on GitHub
src/Plugin/Validation/Constraint/GlobalMessageConstraint.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Drupal\stanford_profile_helper\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Plugin implementation of the 'global_message_constraint'.
 *
 * @Constraint(
 *   id = "global_message_constraint",
 *   label = @Translation("Global message constraint", context = "Validation"),
 * )
 */
class GlobalMessageConstraint extends Constraint {

  public $fieldsNotPopulated = 'To enable a global message, at least one field must have a value: Label, Headline, Message, Action Link.';

}