public function SettingsForm::__construct in Content Planner 8
Same name in this branch
- 8 modules/content_kanban/src/Form/SettingsForm.php \Drupal\content_kanban\Form\SettingsForm::__construct()
- 8 modules/content_calendar/src/Form/SettingsForm.php \Drupal\content_calendar\Form\SettingsForm::__construct()
Constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory:
Overrides ConfigFormBase::__construct
File
- modules/
content_calendar/ src/ Form/ SettingsForm.php, line 43
Class
- SettingsForm
- Defines a form that configures forms module settings.
Namespace
Drupal\content_calendar\FormCode
public function __construct(ConfigFactoryInterface $config_factory) {
parent::__construct($config_factory);
$this->contentTypeConfigService = \Drupal::service('content_calendar.content_type_config_service');
// Get config.
$this->config = $this
->config(self::CONFIG_NAME);
}