public static function BigPipeTestController::responseException 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::responseException()
#lazy_builder callback; returns content that will trigger an exception.
Return value
array
See also
\Drupal\big_pipe_test\EventSubscriber\BigPipeTestSubscriber::onRespondTriggerException()
File
- core/
modules/ big_pipe/ tests/ modules/ big_pipe_test/ src/ BigPipeTestController.php, line 130
Class
Namespace
Drupal\big_pipe_testCode
public static function responseException() {
return [
'#plain_text' => BigPipeTestSubscriber::CONTENT_TRIGGER_EXCEPTION,
];
}