function RendererLegacyTest::providerElements

Provides a list of elements to test.

File

core/tests/Drupal/KernelTests/Core/Render/RendererLegacyTest.php, line 59

Class

RendererLegacyTest
Deprecation tests cases for the render layer.

Namespace

Drupal\KernelTests\Core\Render

Code

public function providerElements() {
    return [
        [
            [
                '#type' => 'date',
                '#states' => [
                    'visible' => [
                        ':input[name="toggle_me"]' => [
                            'checked' => TRUE,
                        ],
                    ],
                ],
            ],
        ],
        [
            [
                '#type' => 'item',
                '#states' => [
                    'visible' => [
                        ':input[name="foo"]' => [
                            'value' => 'bar',
                        ],
                    ],
                ],
            ],
        ],
    ];
}

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