class OliveroPreRender implements TrustedCallbackInterface (View source)

internal  
 

Implements trusted prerender callbacks for the Olivero theme.

Methods

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 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.