/**
* #lazy_builder callback; builds shortcut toolbar links.
*
* @return array
* A renderable array of shortcut links.
*/
public function lazyLinks() { $shortcut_set =
shortcut_current_displayed_set();
$links =
shortcut_renderable_links();
$configure_link = NULL;
if (shortcut_set_edit_access($shortcut_set)->
isAllowed()) { $configure_link =
[ '#type' => 'link',
'#title' =>
t('Edit shortcuts'
),
'#url' => Url::
fromRoute('entity.shortcut_set.customize_form',
['shortcut_set' =>
$shortcut_set->
id()]),
'#options' =>
['attributes' =>
['class' =>
['edit-shortcuts'
]]],
];
}