How to validate route parameters using regex in Drupal 8/9
Drupal 8/9 routing system is validation-friendly. Validating your route against some commonly used regex lines is possible.
Example 1: placeholder value should be a numeric character.
Example 2: placeholder value should string and contains only uppercase and lowercase alphabet.
Example 1: placeholder value should be a numeric character.
Example 2: placeholder value should string and contains only uppercase and lowercase alphabet.
Share
share your add link
https%3A%2F%2Fmycode.blog%2Flakshmi%2Fhow-validate-route-parameters-using-regex-drupal-89%0A
Share in social
Comments