drupal-eca-recipe / eca_lib_0013
Tests whether values occur in a pipe-separated list, wrapping each needle in the delimiter so that a partial match cannot report a false positive.
Package info
gitlab.lakedrops.com/drupal/recipes/eca_lib_0013
Type:drupal-recipe
pkg:composer/drupal-eca-recipe/eca_lib_0013
Requires
- drupal/eca: *
- drupal/eca_tamper: *
- drupal/modeler_api: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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/eca_lib_0013
# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0013
# Rebuilding caches is optional, sometimes required:
drush cr