You are here

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

RenderDeprecationController

Namespace

Drupal\render_deprecation

Code

protected function renderArray() {
  return [
    'div' => [
      '#type' => 'container',
      '#attributes' => [
        'id' => 'render-deprecation-test-result',
      ],
      'info' => [
        '#markup' => 'Hello.',
      ],
    ],
  ];
}