Merge pull request #2742 from firemankurt/master

Allows Settings to be defined in YAML
This commit is contained in:
Luke Towers 2017-03-10 14:37:02 -06:00 committed by GitHub
commit 03fc5cb78e
1 changed files with 4 additions and 1 deletions

View File

@ -138,7 +138,10 @@ class PluginBase extends ServiceProviderBase
*/
public function registerSettings()
{
return [];
$configuration = $this->getConfigurationFromYaml();
if (array_key_exists('settings', $configuration)) {
return $configuration['settings'];
}
}
/**