function FilterTestPlaceholders::renderStaticThing

Same name and namespace in other branches
  1. 11.x core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php \Drupal\filter_test\Plugin\Filter\FilterTestPlaceholders::renderStaticThing()
  2. main core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php \Drupal\filter_test\Plugin\Filter\FilterTestPlaceholders::renderStaticThing()

#lazy_builder callback; builds a render array.

Return value

array A renderable array.

File

core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php, line 56

Class

FilterTestPlaceholders
Provides a test filter to use placeholders.

Namespace

Drupal\filter_test\Plugin\Filter

Code

public static function renderStaticThing() : array {
  return [
    '#markup' => 'This is a static llama.',
  ];
}

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