You are here

public function ShortcutsBlock::build in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php \Drupal\shortcut\Plugin\Block\ShortcutsBlock::build()
  2. 9 core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php \Drupal\shortcut\Plugin\Block\ShortcutsBlock::build()

File

core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php, line 23

Class

ShortcutsBlock
Provides a 'Shortcut' block.

Namespace

Drupal\shortcut\Plugin\Block

Code

public function build() {
  return [
    shortcut_renderable_links(shortcut_current_displayed_set()),
  ];
}