public function RendererLegacyTest::providerElements in Drupal 8
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\RenderCode
public function providerElements() {
return [
[
[
'#type' => 'date',
'#states' => [
'visible' => [
':input[name="toggle_me"]' => [
'checked' => TRUE,
],
],
],
],
],
[
[
'#type' => 'item',
'#states' => [
'visible' => [
':input[name="foo"]' => [
'value' => 'bar',
],
],
],
],
],
];
}