TestElementInfoManager::$elementInfo

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\TestElementInfoManager::elementInfo
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\TestElementInfoManager::elementInfo
  3. 10 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\TestElementInfoManager::elementInfo

Type: elementInfo

Overrides ElementInfoManager::$elementInfo

File

core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php, line 165

Class

TestElementInfoManager
Provides a test custom element plugin.

Namespace

Drupal\Tests\Core\Render

Code

protected $elementInfo = [
    'test' => [
        'foo' => [
            '#bar' => 'baz',
        ],
    ],
];

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