function ElementInfoManagerTest::providerTestGetInfoElementPlugin
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()
- 10 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()
- 11.x 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
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.