Skip to content
Snippets Groups Projects
Commit bf4a89f3 authored by Gaurav Kapoor's avatar Gaurav Kapoor
Browse files

Issue #3476783: Error when accessing the plugin settings page

parent 8959efd4
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
namespace Drupal\documentation_generator\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\documentation_generator\Plugin\DocumentationGeneratorChapterManager;
......@@ -30,9 +31,8 @@ class SettingsPluginForm extends ConfigFormBase {
* @param \Drupal\documentation_generator\Plugin\DocumentationGeneratorChapterManager $chapterManager
* The documentation generator chapter manager.
*/
public function __construct(ConfigFactoryInterface $config_factory,
DocumentationGeneratorChapterManager $chapterManager) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, DocumentationGeneratorChapterManager $chapterManager) {
parent::__construct($config_factory, $typedConfigManager);
$this->chapterManager = $chapterManager;
}
......@@ -42,6 +42,7 @@ class SettingsPluginForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('plugin.manager.documentation_generator_chapter.processor')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment