You are here

class DummyPluginManager in Features 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/FeaturesBundleTest.php \Drupal\Tests\features\Unit\DummyPluginManager

A dummy plugin manager, to help testing.

Hierarchy

Expanded class hierarchy of DummyPluginManager

File

tests/src/Unit/FeaturesBundleTest.php, line 195

Namespace

Drupal\Tests\features\Unit
View source
class DummyPluginManager {

  /**
   * {@inheritDoc}
   */
  public function getDefinition($method_id) {
    $definition = [
      'enabled' => TRUE,
      'weight' => 0,
      'default_settings' => [
        'my_setting' => 42,
      ],
    ];
    return $definition;
  }

}

Members