public static function BigPipeTestController::helloOrYarhar in Drupal 9
Same name and namespace in other branches
- 8 core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php \Drupal\big_pipe_test\BigPipeTestController::helloOrYarhar()
#lazy_builder callback; says "hello" or "yarhar".
Return value
array
File
- core/
modules/ big_pipe/ tests/ modules/ big_pipe_test/ src/ BigPipeTestController.php, line 104
Class
Namespace
Drupal\big_pipe_testCode
public static function helloOrYarhar() {
return [
'#markup' => BigPipeMarkup::create('<marquee>Yarhar llamas forever!</marquee>'),
'#cache' => [
'max-age' => 0,
'tags' => [
'cache_tag_set_in_lazy_builder',
],
],
];
}