You are here

public static function ViewsTestDataController::preRender in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php \Drupal\views_test_data\Controller\ViewsTestDataController::preRender()
  2. 9 core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php \Drupal\views_test_data\Controller\ViewsTestDataController::preRender()

Tests pre_render function.

Parameters

array $element: A render array.

Return value

array The changed render array.

File

core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php, line 46

Class

ViewsTestDataController
Controller class for views_test_data callbacks.

Namespace

Drupal\views_test_data\Controller

Code

public static function preRender($element) {
  $element['#markup'] = '\\Drupal\\views_test_data\\Controller\\ViewsTestDataController::preRender executed';
  return $element;
}