public function PromoteDisableForm::__construct in Promote Disable 8
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
Overrides ConfigFormBase::__construct
File
- src/
Form/ PromoteDisableForm.php, line 35
Class
- PromoteDisableForm
- Class PromoteDisableForm.
Namespace
Drupal\promote_disable\FormCode
public function __construct(ConfigFactoryInterface $config_factory) {
$this->config = $config_factory
->getEditable('promote_disable.settings');
}