Update input documentation

Created on 8 January 2025, 3 months ago

Problem/Motivation

https://www.drupal.org/node/3470507 β†’

But, as of Drupal 11.1.2 (but not Drupal 10), you can use the input tokens to dynamically target config entities, with certain limitations:

config:
  actions:
    node.type.${content_type}:
      setDescription: 'Changing the description of a user-chosen node type!'
    # WON'T WORK: You can only use the tokens in the identifying parts of the config entity ID (for example, a node type's actual machine name).
    ${module_name}.type.foo:
      doSomething: here
    # WON'T WORK: Tokens in config entity IDs only work for config entities, not simple config.
    system.${config_name}:
      simpleConfigUpdate:
        someKey: some value

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024