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

Issue #3500868 - Update readme

parent 6eed4b9a
No related branches found
No related tags found
Loading
Pipeline #405775 passed with warnings
......@@ -10,6 +10,7 @@
"Viktor",
"barraponto",
"jnicola",
"mashevskyi",
"myfield",
"mymodule",
"otherfield",
......
......@@ -26,6 +26,12 @@ information, see
[Installing Drupal Modules](https://www.drupal.org/docs/extending-drupal/installing-drupal-modules).
## Bypass validations
It's possible to bypass any validations by enabling the required configuration and configuring user permissions.
All Form API validation settings can be found on the `/admin/config/system/fapi` page.
## Available Validators
|Rule|Usage|Description|
......@@ -45,16 +51,29 @@ information, see
|match_field|`match_field[otherfield]`|Check if the field has same value of otherfield.|
|range|`range[<min>, <max>]`|Check if the field value is in defined range.|
It's possible to add custom validations as plugins.
All of validations can be found on the `/admin/config/system/fapi/validations` page.
## Available Filters
|Filter|Description|
|------|-----------|
|`numeric`|Remove all non numeric characters.|
|`trim`|Remove all spaces before and after value.|
|`uppercase`|Transform all characters to upper case.|
|`lowercase`|Transform all characters to lower case.|
|`strip_tags`|Strips out ALL html tags.|
|`html_entities`|Decodes all previously encoded entities, and then encodes all entities.|
|Filter| Description |
|------|-------------------------------------------------------------------------|
|`numeric`| Remove all non numeric characters. |
|`trim`| Remove all spaces before and after value. |
|`ltrim`| Remove all spaces before value. |
|`rtrim`| Remove all spaces after value. |
|`machine_name`| Transform input values into machine-readable names. |
|`ucfirst`| Make a string's first character uppercase. |
|`ucwords`| Uppercase the first character of each word in a string. |
|`uppercase`| Transform all characters to upper case. |
|`lowercase`| Transform all characters to lower case. |
|`strip_tags`| Strips out ALL html tags. |
|`html_entities`| Decodes all previously encoded entities, and then encodes all entities. |
It's possible to add custom filters as plugins.
All of filters can be found on the `/admin/config/system/fapi/filters` page.
## Usage
......@@ -239,3 +258,4 @@ Now you are able to use at your form definition.
- Capi Etheriel - [barraponto](https://www.drupal.org/u/barraponto)
- Jesse - [jnicola](https://www.drupal.org/u/jnicola)
- Viktor Holovachek - [AstonVictor](https://www.drupal.org/u/astonvictor)
- igor mashevskyi - [igor-mashevskyi](https://www.drupal.org/u/igor-mashevskyi)
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