Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserLazyBuilder.php

function UserLazyBuilder::renderNavigationLinks

Lazy builder callback for rendering navigation links.

Return value

array A renderable array as expected by the renderer service.

File

core/modules/navigation/src/UserLazyBuilder.php, line 37

Class

UserLazyBuilder
User navigation block lazy builder.

Namespace

Drupal\navigation

Code

public function renderNavigationLinks() {
    return [
        '#theme' => 'menu_region__footer',
        '#items' => $this->userOperationLinks(),
        '#menu_name' => 'user',
        '#title' => $this->account
            ->getDisplayName(),
        '#cache' => [
            'contexts' => [
                'user',
            ],
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal