Document that #item has a #id property

Created on 15 August 2013, almost 12 years ago
Updated 11 March 2023, about 2 years ago

The form type #item is missing the property #id, which actually can be used.
https://api.drupal.org/api/drupal/developer%21topics%21forms_api_referen...

In theme_form_element there's special treatment for #item:

// Add element #id for #type 'item'.
  if (isset($element['#markup']) && !empty($element['#id'])) {
    $attributes['id'] = $element['#id'];
  }
📌 Task
Status

Active

Component

API documentation files

Created by

🇸🇪Sweden blackdog

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

Comments & Activities

Production build 0.71.5 2024