Plugin Interface class name mismatch

Created on 25 October 2023, about 1 year ago
Updated 27 October 2023, about 1 year ago

Problem/Motivation

The class Drupal\ui_patterns_settings\UiPatternsSettingsManager calls it's parent constructor and passes in a plugin_interface var value of 'Drupal\ui_patterns_settings\SettingTypeInterface', shouldn't this be 'Drupal\ui_patterns_settings\Plugin\PatternSettingTypeInterface'?

Proposed resolution

    * UiPatternsSettingsManager constructor.
    */
   public function __construct(\Traversable $namespaces, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
-    parent::__construct('Plugin/UiPatterns/SettingType', $namespaces, $module_handler, 'Drupal\ui_patterns_settings\SettingTypeInterface', 'Drupal\ui_patterns_settings\Annotation\UiPatternsSettingType');
+    parent::__construct('Plugin/UiPatterns/SettingType', $namespaces, $module_handler, 'Drupal\ui_patterns_settings\Plugin\PatternSettingTypeInterface', 'Drupal\ui_patterns_settings\Annotation\UiPatternsSettingType');
     $this->moduleHandler = $module_handler;
     $this->alterInfo('ui_patterns_settings_info');
     $this->setCacheBackend($cache_backend, 'ui_patterns_settings', ['ui_patterns_settings']);
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom altcom_neil

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

Comments & Activities

Production build 0.71.5 2024