public function MockConfigurablePlugin::defaultConfiguration in Plugin 8.2
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ConfigurableInterface::defaultConfiguration
2 calls to MockConfigurablePlugin::defaultConfiguration()
- MockConfigurablePlugin::setConfiguration in tests/
modules/ plugin_test_helper/ src/ Plugin/ PluginTestHelper/ MockConfigurablePlugin.php - Sets the configuration for this plugin instance.
- MockConfigurablePlugin::__construct in tests/
modules/ plugin_test_helper/ src/ Plugin/ PluginTestHelper/ MockConfigurablePlugin.php - Constructs a new instance.
File
- tests/
modules/ plugin_test_helper/ src/ Plugin/ PluginTestHelper/ MockConfigurablePlugin.php, line 54
Class
- MockConfigurablePlugin
- Provides a configurable mock plugin.
Namespace
Drupal\plugin_test_helper\Plugin\PluginTestHelperCode
public function defaultConfiguration() {
return [
'foo' => 'Foo',
];
}