Skip to content
Snippets Groups Projects

Issue #3500205: Use attributes for AlphaNumericValidator plugin

Merged Issue #3500205: Use attributes for AlphaNumericValidator plugin
1 unresolved thread
1 unresolved thread

Related to #3500205

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
7 use Drupal\fapi_validation\Attribute\FapiValidationValidator;
6 8 use Drupal\fapi_validation\FapiValidationValidatorsInterface;
7 9 use Drupal\fapi_validation\Validator;
8 10
9 11 /**
10 12 * Fapi Validation Plugin for Alpha Numeric validation.
11 *
12 * @FapiValidationValidator(
13 * id = "alpha_numeric",
14 * error_message = "Use only alpha numerics characters at %field."
15 * )
16 13 */
14 #[FapiValidationValidator(
15 id: 'alpha_numeric',
16 label: new TranslatableMarkup('Alpha Numeric'),
17 description: new TranslatableMarkup('Transform input value to alpha numerics.'),
Please register or sign in to reply
Loading