Loading core/modules/navigation/src/ShortcutLazyBuilder.php +3 −9 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ namespace Drupal\navigation; use Drupal\Core\Security\TrustedCallbackInterface; use Drupal\Core\Security\Attribute\TrustedCallback; use Drupal\shortcut\ShortcutLazyBuilders; /** Loading @@ -13,7 +13,7 @@ * @internal * @see \Drupal\shortcut\ShortcutLazyBuilders */ final class ShortcutLazyBuilder implements TrustedCallbackInterface { final class ShortcutLazyBuilder { /** * Constructs a ShortcutLazyBuilders object. Loading @@ -25,13 +25,6 @@ public function __construct( protected readonly ShortcutLazyBuilders $shortcutLazyBuilder, ) {} /** * {@inheritdoc} */ public static function trustedCallbacks() { return ['lazyLinks']; } /** * The #lazy_builder callback; builds shortcut navigation links. * Loading @@ -41,6 +34,7 @@ public static function trustedCallbacks() { * @return array * A renderable array of shortcut links. */ #[TrustedCallback] public function lazyLinks(string $label = 'Shortcuts') { $shortcut_links = $this->shortcutLazyBuilder->lazyLinks(); Loading Loading
core/modules/navigation/src/ShortcutLazyBuilder.php +3 −9 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ namespace Drupal\navigation; use Drupal\Core\Security\TrustedCallbackInterface; use Drupal\Core\Security\Attribute\TrustedCallback; use Drupal\shortcut\ShortcutLazyBuilders; /** Loading @@ -13,7 +13,7 @@ * @internal * @see \Drupal\shortcut\ShortcutLazyBuilders */ final class ShortcutLazyBuilder implements TrustedCallbackInterface { final class ShortcutLazyBuilder { /** * Constructs a ShortcutLazyBuilders object. Loading @@ -25,13 +25,6 @@ public function __construct( protected readonly ShortcutLazyBuilders $shortcutLazyBuilder, ) {} /** * {@inheritdoc} */ public static function trustedCallbacks() { return ['lazyLinks']; } /** * The #lazy_builder callback; builds shortcut navigation links. * Loading @@ -41,6 +34,7 @@ public static function trustedCallbacks() { * @return array * A renderable array of shortcut links. */ #[TrustedCallback] public function lazyLinks(string $label = 'Shortcuts') { $shortcut_links = $this->shortcutLazyBuilder->lazyLinks(); Loading