You are here

public function SettingsForm::__construct in Content Planner 8

Same name in this branch
  1. 8 modules/content_kanban/src/Form/SettingsForm.php \Drupal\content_kanban\Form\SettingsForm::__construct()
  2. 8 modules/content_calendar/src/Form/SettingsForm.php \Drupal\content_calendar\Form\SettingsForm::__construct()

Constructor for the Settings Form.

Overrides ConfigFormBase::__construct

File

modules/content_kanban/src/Form/SettingsForm.php, line 44

Class

SettingsForm
Defines a form that configures forms module settings.

Namespace

Drupal\content_kanban\Form

Code

public function __construct(KanbanService $kanbanService, ConfigFactoryInterface $config_factory) {
  parent::__construct($config_factory);
  $this->kanbanService = $kanbanService;

  // Get config.
  $this->config = $this
    ->config(self::CONFIG_NAME);
}