class ShortcutLazyBuilders implements TrustedCallbackInterface (View source)

Lazy builders for the shortcut module.

Properties

protected RendererInterface $renderer

The renderer service.

Methods

__construct(RendererInterface $renderer)

Constructs a new ShortcutLazyBuilders object.

static string[]
trustedCallbacks()

Lists the trusted callbacks provided by the implementing class.

array
lazyLinks()

lazy_builder callback; builds shortcut toolbar links.

Details

__construct(RendererInterface $renderer)

Constructs a new ShortcutLazyBuilders object.

Parameters

RendererInterface $renderer

The renderer service.

static string[] trustedCallbacks()

Lists the trusted callbacks provided by the implementing class.

Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().

Return Value

string[]

List of method names implemented by the class that can be used as trusted callbacks.

lazy_builder callback; builds shortcut toolbar links.

Return Value

array

A renderable array of shortcut links.