Adopt usage of #config_target in ConfigFormBase: using schema validation constraints for simple config.

Created on 26 October 2024, 6 months ago

Problem/Motivation

As of Drupal Core 10.2 [#3373502] our modules no longer need to maintain form validation for simple config.
Nor do we need to maintain a submit handler,

This means that if we move validation up a level into the config schema, configuration updated via a drush (bypassing the form) must also be valid.

Steps to reproduce

View: https://git.drupalcode.org/project/environment_indicator/-/blob/4.x/conf...
View: https://git.drupalcode.org/project/environment_indicator/-/blob/4.x/src/...

Proposed resolution

Use the new features available in Drupal 10.2.x and above.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

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