Skip to content
Snippets Groups Projects

Resolve #3500209 "Use attributes for"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -14,7 +14,7 @@ use Drupal\fapi_validation\Validator;
@@ -14,7 +14,7 @@ use Drupal\fapi_validation\Validator;
#[FapiValidationValidator(
#[FapiValidationValidator(
id: 'digit',
id: 'digit',
label: new TranslatableMarkup('Alpha Numeric'),
label: new TranslatableMarkup('Alpha Numeric'),
description: new TranslatableMarkup('Transform input value to digit.'),
description: new TranslatableMarkup('Validates input value based on digit pattern.'),
error_message: 'Use only digits on %field.',
error_message: 'Use only digits on %field.',
)]
)]
class DigitValidator implements FapiValidationValidatorsInterface {
class DigitValidator implements FapiValidationValidatorsInterface {
Loading