Skip to content
Snippets Groups Projects
Commit 61956880 authored by Ihor Mashevskyi's avatar Ihor Mashevskyi Committed by Viktor Holovachek
Browse files

Issue #3500199: Use attributes for LowercaseFilter plugin

parent 930b7227
No related branches found
Tags 2.0.0-beta10
1 merge request!30Issue #3500199: Use attributes for LowercaseFilter plugin
Pipeline #405365 passed with warnings
......@@ -2,15 +2,18 @@
namespace Drupal\fapi_validation\Plugin\FapiValidationFilter;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\fapi_validation\Attribute\FapiValidationFilter;
use Drupal\fapi_validation\FapiValidationFiltersInterface;
/**
* Fapi Validation Plugin for Lowercase filter.
*
* @FapiValidationFilter(
* id = "lowercase"
* )
*/
#[FapiValidationFilter(
id: 'lowercase',
label: new TranslatableMarkup('Lowercase'),
description: new TranslatableMarkup('Transform input value to lower case.'),
)]
class LowercaseFilter implements FapiValidationFiltersInterface {
/**
......
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