function RenderDeprecationController::renderArray

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.',
            ],
        ],
    ];
}

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