Find a better approach to wrap local action links in a <ul>

Created on 6 November 2020, almost 4 years ago
Updated 17 July 2024, about 2 months ago

Problem/Motivation

Follow-up for #2828680: Missing ul wrapper on forum local action links.

Find a better approach for the workaround used for adding the missing ul on forum local action links in ForumController::buildActionLinks

        $links['login'] = [
          '#theme' => 'menu_local_action',
          '#link' => [
            'title' => $this->t('Log in to post new content in the forum.'),
            'url' => Url::fromRoute('user.login', [], ['query' => $this->getDestinationArray()]),
          ],
          // Without this workaround, the action links will be rendered as <li>
          // with no wrapping <ul> element.
          '#prefix' => '<ul class="action-links">',
          '#suffix' => '</ul>',
        ];

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
System 

Last updated 1 day ago

No maintainer
Created by

🇮🇳India raman.b Delhi

Live updates comments and jobs are added and updated live.
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