class ClaroPreRender implements TrustedCallbackInterface (View source)

internal  
 

Implements trusted prerender callbacks for the Claro theme.

Methods

static 
managedFile($element)

Prerender callback for managed_file.

static 
verticalTabs($element)

Prerender callback for Vertical Tabs element.

static 
dropButton($element)

Prerender callback for Dropbutton element.

static array
container(array $element)

Prerender callback for container elements.

static 
textFormat($element)

Prerender callback for text_format elements.

static array
messagePlaceholder(array $element)

Prerender callback for status_messages placeholder.

static string[]
trustedCallbacks()

Lists the trusted callbacks provided by the implementing class.

Details

static managedFile($element)

Prerender callback for managed_file.

Parameters

$element

static verticalTabs($element)

Prerender callback for Vertical Tabs element.

Parameters

$element

static dropButton($element)

Prerender callback for Dropbutton element.

Revisit after https://www.drupal.org/node/3057581 is added.

Parameters

$element

static array container(array $element)

Prerender callback for container elements.

Parameters

array $element

The container element.

Return Value

array

The processed container element.

static textFormat($element)

Prerender callback for text_format elements.

Parameters

$element

static array messagePlaceholder(array $element)

Prerender callback for status_messages placeholder.

Parameters

array $element

A renderable array.

Return Value

array

The updated renderable array containing the placeholder.

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.