public function ElementInfoManagerTest::providerTestGetInfoElementPlugin in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()
- 9 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()
Provides tests data for testGetInfoElementPlugin().
Return value
array
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ ElementInfoManagerTest.php, line 119 - Contains \Drupal\Tests\Core\Render\ElementInfoManagerTest.
Class
- ElementInfoManagerTest
- @coversDefaultClass \Drupal\Core\Render\ElementInfoManager @group Render
Namespace
Drupal\Tests\Core\RenderCode
public function providerTestGetInfoElementPlugin() {
$data = [];
$data[] = [
'Drupal\\Core\\Render\\Element\\ElementInterface',
[
'#type' => 'page',
'#theme' => 'page',
'#defaults_loaded' => TRUE,
],
];
$data[] = [
'Drupal\\Core\\Render\\Element\\FormElementInterface',
[
'#type' => 'page',
'#theme' => 'page',
'#input' => TRUE,
'#value_callback' => [
'TestElementPlugin',
'valueCallback',
],
'#defaults_loaded' => TRUE,
],
];
return $data;
}