Skip to content
Snippets Groups Projects
Commit ebe3ea46 authored by Dieter Holvoet's avatar Dieter Holvoet Committed by Bojan Bogdanovic
Browse files

Issue #3495678: Add a fallback for the config option

parent efcbda97
No related branches found
No related tags found
1 merge request!159Issue #3495678: Add a fallback for the config option
Pipeline #377157 passed with warnings
......@@ -53,7 +53,7 @@ class Oauth2ScopeProviderFactory implements Oauth2ScopeProviderFactoryInterface
* {@inheritdoc}
*/
public function get(): Oauth2ScopeAdapterInterface {
$plugin_id = $this->config->get('scope_provider');
$plugin_id = $this->config->get('scope_provider') ?? 'dynamic';
/** @var \Drupal\simple_oauth\Plugin\ScopeProviderInterface $plugin */
$plugin = $this->scopeProviderManager->getInstance(['id' => $plugin_id]);
$adapter = $plugin->getScopeProviderAdapter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment