You are here

PrerenderBase.php in Express 8

File

themes/contrib/bootstrap/src/Plugin/Prerender/PrerenderBase.php
View source
<?php

/**
 * @file
 * Contains \Drupal\bootstrap\Plugin\Prerender\PrerenderBase.
 */
namespace Drupal\bootstrap\Plugin\Prerender;

use Drupal\bootstrap\Utility\Element;

/**
 * Defines the interface for an object oriented preprocess plugin.
 *
 * @ingroup plugins_prerender
 */
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) {
  }

}

Classes

Namesort descending Description
PrerenderBase Defines the interface for an object oriented preprocess plugin.