API page: https://api.drupal.org/api/drupal/core%21includes%21theme.inc/function/t...

This is in the code but not documented in the docblock:

      // List items support attributes via the '#wrapper_attributes' property.
      if (isset($item['#wrapper_attributes'])) {
        $attributes = $item['#wrapper_attributes'];
      }

Comments

joachim created an issue. See original summary.

jhodgdon’s picture

Title: template_preprocess_item_lis() '#wrapper_attributes' property is undocumented » template_preprocess_item_list() '#wrapper_attributes' property is undocumented
pushpinderchauhan’s picture

Status: Active » Needs review
StatusFileSize
new529 bytes

Please review.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks quite reasonable, thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 376591e and pushed to 8.2.x. Thanks!

  • alexpott committed 376591e on 8.2.x
    Issue #2710669 by er.pushpinderrana: template_preprocess_item_list() '#...

  • alexpott committed 5fbb8b1 on 8.1.x
    Issue #2710669 by er.pushpinderrana: template_preprocess_item_list() '#...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.