You are here

public function CopypreventionSettingsForm::__construct in Copy Prevention 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/CopypreventionSettingsForm.php, line 25

Class

CopypreventionSettingsForm
Copyprevention Settings Form class.

Namespace

Drupal\copyprevention\Form

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->config = $config_factory
    ->getEditable('copyprevention.settings');
}