class TestElementInfoManager

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\TestElementInfoManager

Provides a test custom element plugin.

Hierarchy

Expanded class hierarchy of TestElementInfoManager

File

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

Namespace

Drupal\Tests\Core\Render
View source
class TestElementInfoManager extends ElementInfoManager {
  
  /**
   * {@inheritdoc}
   */
  protected $elementInfo = [
    'test' => [
      'foo' => [
        '#bar' => 'baz',
      ],
    ],
  ];

}

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