function EarlyRenderingTestController::earlyRenderContent
Same name in other branches
- 8.9.x core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php \Drupal\early_rendering_controller_test\EarlyRenderingTestController::earlyRenderContent()
- 10 core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php \Drupal\early_rendering_controller_test\EarlyRenderingTestController::earlyRenderContent()
- 11.x core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php \Drupal\early_rendering_controller_test\EarlyRenderingTestController::earlyRenderContent()
8 calls to EarlyRenderingTestController::earlyRenderContent()
- EarlyRenderingTestController::cacheableDomainObjectEarly in core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ EarlyRenderingTestController.php - EarlyRenderingTestController::cacheableResponseEarly in core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ EarlyRenderingTestController.php - EarlyRenderingTestController::domainObjectEarly in core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ EarlyRenderingTestController.php - EarlyRenderingTestController::domainObjectWithAttachmentsEarly in core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ EarlyRenderingTestController.php - EarlyRenderingTestController::renderArray in core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ EarlyRenderingTestController.php
File
-
core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ EarlyRenderingTestController.php, line 50
Class
- EarlyRenderingTestController
- Controller routines for early_rendering_test routes.
Namespace
Drupal\early_rendering_controller_testCode
protected function earlyRenderContent() {
return [
'#markup' => 'Hello world!',
'#cache' => [
'tags' => [
'foo',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.