function ViewsTestDataController::preRender

Same name in other branches
  1. 9 core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php \Drupal\views_test_data\Controller\ViewsTestDataController::preRender()
  2. 10 core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php \Drupal\views_test_data\Controller\ViewsTestDataController::preRender()
  3. 11.x core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php \Drupal\views_test_data\Controller\ViewsTestDataController::preRender()

Test 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.