public function ShortcutsBlock::build in Drupal 10
Same name and namespace in other branches
- 8 core/modules/shortcut/src/Plugin/Block/ShortcutsBlock.php \Drupal\shortcut\Plugin\Block\ShortcutsBlock::build()
- 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\BlockCode
public function build() {
return [
shortcut_renderable_links(shortcut_current_displayed_set()),
];
}