Use #config_target in forms

Created on 26 September 2024, 7 months ago

Problem/Motivation

We should be using #config_target - see https://www.drupal.org/node/3373502 β†’

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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

Merge Requests

Comments & Activities

  • Issue created by @alexpott
  • First commit to issue fork.
  • πŸ‡―πŸ‡΅Japan ptmkenny

    I started this but I can't figure out how to type default_properties

    According to field_encrypt.schema.yml:

        default_properties:
          type: sequence
          label: 'Field types'
          sequence:
            type: sequence
            label: 'Properties to encrypt'
            sequence:
              type: string
              label: 'Property name'
    

    But when I added:

        $form['default_properties'] = [
          '#type' => 'details',
          '#title' => $this->t('Default properties'),
          '#config_target' => 'field_encrypt.settings:default_properties',
    

    and then save a valid config form, I get an error:

    This value should be of the correct primitive type.

  • Pipeline finished with Failed
    7 months ago
    Total: 509s
    #298680
Production build 0.71.5 2024