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

Merge branch '3502060-form-api-validation' into '3.0.x'

Issue #3502060 - Add new plugin

See merge request !27
parents d98c5142 c9830731
No related branches found
No related tags found
No related merge requests found
Pipeline #405326 passed with warnings
<?php
namespace Drupal\fapi_validation\Plugin\FapiValidationFilter;
use Drupal\fapi_validation\FapiValidationFiltersInterface;
/**
* Fapi Validation Plugin for Ucfirst filter.
*
* @FapiValidationFilter(
* id = "ucfirst"
* )
*/
class UcfirstFilter implements FapiValidationFiltersInterface {
/**
* {@inheritdoc}
*/
public function filter($value) {
return ucfirst($value);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment