You are here

public static function PrerenderBase::preRender in Express 8

Pre-render render array element callback.

Parameters

array $element: The render array element.

Return value

array The modified render array element.

Overrides PrerenderInterface::preRender

File

themes/contrib/bootstrap/src/Plugin/Prerender/PrerenderBase.php, line 21
Contains \Drupal\bootstrap\Plugin\Prerender\PrerenderBase.

Class

PrerenderBase
Defines the interface for an object oriented preprocess plugin.

Namespace

Drupal\bootstrap\Plugin\Prerender

Code

public static function preRender(array $element) {
  static::preRenderElement(Element::create($element));
  return $element;
}