Use $this->pluginDefinition['provider'] for getConfig

Created on 15 July 2025, 21 days ago

Problem/Motivation

Currently the getConfig looks like this:

  /**
   * {@inheritdoc}
   */
  public function getConfig(): ImmutableConfig {
    $module_name = str_replace('_provider', '', $this->getPluginId());
    return $this->configFactory->get($module_name . '.settings');
  }

This is problematic, because the plugin id can have any name, not connected to the settings.

Instead we should use $this->pluginDefinition['provider'] that gets the module name.

Proposed resolution

Change the function getConfig so its using $this->pluginDefinition['provider'].

📌 Task
Status

Active

Version

1.2

Component

AI Core module

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024