public static function ViewsTestDataController::preRender in Drupal 8
Same name and namespace in other branches
- 9 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\ControllerCode
public static function preRender($element) {
$element['#markup'] = '\\Drupal\\views_test_data\\Controller\\ViewsTestDataController::preRender executed';
return $element;
}