drupal-eca-recipe/eca_lib_0028

Access to form fields with tokens

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

3.1.2 2025-08-10 14:12 UTC

This package is auto-updated.

Last update: 2025-08-10 14:14:45 UTC


README

ID: eca_lib_0028

This model demonstrates how to access form field values during validation or submission, how to find out the proper token syntax for each form field type, and also an alternative approach by building a temporary entity from form field values to use the more transparent entity token syntax.

The creation of this module was recorded and the video with additional explanations can be watch here.

Installation

## Import recipe
composer require drupal-eca-recipe/eca_lib_0028

# 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_0028

# Rebuilding caches is optional, sometimes required:
drush cr