Replace $element['#id'] with $element['#attributes']['id']

Created on 17 November 2010, almost 15 years ago
Updated 8 July 2025, 4 months ago

Form API's #id dates back to very old times.

Having both #id and #attributes][id leads to awkward code everywhere and is totally confusing.

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

forms system

Created by

πŸ‡©πŸ‡ͺGermany sun Karlsruhe

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024