protected function RenderDeprecationController::renderArray in Drupal 9
2 calls to RenderDeprecationController::renderArray()
- RenderDeprecationController::buildRenderFunction in core/
modules/ system/ tests/ modules/ render_deprecation/ src/ RenderDeprecationController.php - RenderDeprecationController::buildRenderService in core/
modules/ system/ tests/ modules/ render_deprecation/ src/ RenderDeprecationController.php
File
- core/
modules/ system/ tests/ modules/ render_deprecation/ src/ RenderDeprecationController.php, line 13
Class
Namespace
Drupal\render_deprecationCode
protected function renderArray() {
return [
'div' => [
'#type' => 'container',
'#attributes' => [
'id' => 'render-deprecation-test-result',
],
'info' => [
'#markup' => 'Hello.',
],
],
];
}