drupal-eca-recipe / eca_lib_0013
Find values in lists
3.1.1
2025-08-03 11:21 UTC
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
- drupal/eca_tamper: *
README
ID: eca_lib_0013
This model defines a serialized list with all of the list items being separated by a pipe character from each other. It then defines 5 different values and verfies if they are contained in the list, displaying either a success or failure message.
The comparison requires the pipe character also surounding the values in order to not get false positives, e.g. the value "x" us not an item in the list, whereas "xyz" is.
Installation
## Import recipe
composer require drupal-eca-recipe/eca_lib_0013
# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/{{ rawid }}
# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0013
# Rebuilding caches is optional, sometimes required:
drush cr