drupal-eca-recipe/eca_lib_0013

Find values in lists

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

3.1.1 2025-08-03 11:21 UTC

This package is auto-updated.

Last update: 2025-08-03 11:24:28 UTC


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