function ShortcutHooks::navigationDefaults

Same name and namespace in other branches
  1. 11.x core/modules/shortcut/src/Hook/ShortcutHooks.php \Drupal\shortcut\Hook\ShortcutHooks::navigationDefaults()

Implements hook_navigation_defaults().

Attributes

#[Hook('navigation_defaults')]

File

core/modules/shortcut/src/Hook/ShortcutHooks.php, line 203

Class

ShortcutHooks
Hook implementations for shortcut.

Namespace

Drupal\shortcut\Hook

Code

public function navigationDefaults() : array {
  return [
    [
      'region' => 'content',
      'configuration' => [
        'id' => 'navigation_shortcuts',
        'label' => 'Shortcuts',
        'label_display' => '0',
        'provider' => 'shortcut',
      ],
      'weight' => 0,
      'additional' => [],
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.