TestPluginManagerWithDefaults::$defaults

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php \Drupal\Tests\Core\Plugin\TestPluginManagerWithDefaults::defaults
  2. 8.9.x core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php \Drupal\Tests\Core\Plugin\TestPluginManagerWithDefaults::defaults
  3. 11.x core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php \Drupal\Tests\Core\Plugin\TestPluginManagerWithDefaults::defaults

Type: defaults

Overrides DefaultPluginManager::$defaults

File

core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php, line 478

Class

TestPluginManagerWithDefaults

Namespace

Drupal\Tests\Core\Plugin

Code

protected $defaults = [
    'foo' => [
        'bar' => [
            'baz',
        ],
    ],
];

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