Skip to content
Snippets Groups Projects
Commit a90dfc04 authored by lysenko's avatar lysenko Committed by Viktor Holovachek
Browse files

Issue #3500208

parent 2b9bab69
No related branches found
No related tags found
1 merge request!57Issue #3500208
Pipeline #405658 canceled
......@@ -3,17 +3,20 @@
namespace Drupal\fapi_validation\Plugin\FapiValidationValidator;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\fapi_validation\Attribute\FapiValidationValidator;
use Drupal\fapi_validation\FapiValidationValidatorsInterface;
use Drupal\fapi_validation\Validator;
/**
* Fapi Validation Plugin for Decimal validation.
*
* @FapiValidationValidator(
* id = "decimal",
* error_message = "Use only decimal on %field."
* )
*/
#[FapiValidationValidator(
id: 'decimal',
label: new TranslatableMarkup('Decimal'),
description: new TranslatableMarkup('Validate input by the given pattern.'),
error_message: 'Use only decimal on %field.',
)]
class DecimalValidator implements FapiValidationValidatorsInterface {
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment