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
- class \Drupal\push_notifications\Plugin\Validation\Constraint\PushNotificationsTokenLanguageConstraint extends \Symfony\Component\Validator\Constraints\Choice
Expanded class hierarchy of PushNotificationsTokenLanguageConstraint
File
- src/
Plugin/ Validation/ Constraint/ PushNotificationsTokenLanguageConstraint.php, line 15
Namespace
Drupal\push_notifications\Plugin\Validation\ConstraintView source
class PushNotificationsTokenLanguageConstraint extends Choice {
public $message = 'The language code %value is not a valid language code.';
}