TestElementInfoManager::$elementInfo

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\TestElementInfoManager::elementInfo
  2. 10 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\TestElementInfoManager::elementInfo
  3. 11.x 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 167

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.