You are here

protected function EarlyRenderingTestController::earlyRenderContent in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php \Drupal\early_rendering_controller_test\EarlyRenderingTestController::earlyRenderContent()
  2. 9 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

... See full list

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_test

Code

protected function earlyRenderContent() {
  return [
    '#markup' => 'Hello world!',
    '#cache' => [
      'tags' => [
        'foo',
      ],
    ],
  ];
}