You are here

public function DummyPluginManager::getDefinition in Features 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/FeaturesBundleTest.php \Drupal\Tests\features\Unit\DummyPluginManager::getDefinition()

File

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

Class

DummyPluginManager
A dummy plugin manager, to help testing.

Namespace

Drupal\Tests\features\Unit

Code

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