public function TestExample::render

Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render().

Overrides AreaPluginBase::render

File

drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php, line 43
Definition of Drupal\views_test_data\Plugin\views\area\TestExample

Class

TestExample
Test area plugin.

Namespace

Drupal\views_test_data\Plugin\views\area

Code

public function render($empty = FALSE) {
  if (!$empty || !empty($this->options['empty'])) {
    return array(
      '#markup' => $this
        ->globalTokenReplace($this->options['string']),
    );
  }
  return array();
}