function TestExample::render

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/area/TestExample.php \Drupal\views_test_data\Plugin\views\area\TestExample::render()
  2. 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/area/TestExample.php \Drupal\views_test_data\Plugin\views\area\TestExample::render()
  3. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/area/TestExample.php \Drupal\views_test_data\Plugin\views\area\TestExample::render()

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/area/TestExample.php, line 47

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 [
      '#markup' => $this->globalTokenReplace($this->options['string']),
    ];
  }
  return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.