- Issue created by @g089h515r806
- 🇧🇷Brazil elber Brazil
Hi can you give me more details about this issue? please.
- 🇨🇳China g089h515r806
there is a contraint at Symfony\Component\Validator\Constraints\Expression,
here is its docs https://symfony.com/doc/current/reference/constraints/Expression.html
we try to support it at field validation module, make it config-able.
it allow you write some twig-like expression :
value in ['php', 'symfony']
which provide similar function as "Specific value(s)" in previous field validation.
This is an example, You can write other expression,
-
g089h515r806 →
committed 10b2ab86 on 3.0.x
Issue #3381361 by g089h515r806: Add support for Symfony Expression...
-
g089h515r806 →
committed 10b2ab86 on 3.0.x
- 🇨🇳China g089h515r806
This constraint require "symfony/expression-language": "^6.3".
otherwise get fatal error:Symfony\Component\Validator\Exception\LogicException: The "symfony/expression-language" component is required to use the "Symfony\Component\Validator\Constraints\Expression" constraint. in Symfony\Component\Validator\Constraints\Expression->__construct() (line 55 of vendor\symfony\validator\Constraints\Expression.php).
Drupal\Core\Validation\ConstraintFactory->createInstance('Expression', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('Expression', Array) (Line: 79) - Status changed to Fixed
over 1 year ago 1:13pm 17 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.