class PrerenderBase

Defines the interface for an object oriented preprocess plugin.

Hierarchy

Expanded class hierarchy of PrerenderBase

Related topics

Namespace

Drupal\bootstrap\Plugin\Prerender
Source
class PrerenderBase implements PrerenderInterface {

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

  /**
   * Pre-render element callback.
   *
   * @param \Drupal\bootstrap\Utility\Element $element
   *   The element object.
   */
  public static function preRenderElement(Element $element) {
  }

}

Members

Contains filters are case sensitive
Name Modifiers Type Description
PrerenderBase::preRender public static function Pre-render render array element callback. Overrides PrerenderInterface::preRender
PrerenderBase::preRenderElement public static function Pre-render element callback.