You are here

class PushNotificationsTokenLanguageConstraint in Push Notifications 8

Validate that the language code passed is valid..

Plugin annotation


@Constraint(
  id = "PushNotificationsTokenLanguage",
  label = @Translation("Language code in token entity", context = "Validation")
)

Hierarchy

Expanded class hierarchy of PushNotificationsTokenLanguageConstraint

File

src/Plugin/Validation/Constraint/PushNotificationsTokenLanguageConstraint.php, line 15

Namespace

Drupal\push_notifications\Plugin\Validation\Constraint
View source
class PushNotificationsTokenLanguageConstraint extends Choice {
  public $message = 'The language code %value is not a valid language code.';

}

Members