function ElementInfoManagerTest::providerTestGetInfoElementPlugin

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::providerTestGetInfoElementPlugin()
  3. 10 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 117

Class

ElementInfoManagerTest
@coversDefaultClass \Drupal\Core\Render\ElementInfoManager @group Render

Namespace

Drupal\Tests\Core\Render

Code

public static 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.