8.5.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)
8.0.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)
8.1.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)
8.2.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)
8.3.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)
8.4.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)
8.6.x FormBase.php FormBase::setConfigFactory(ConfigFactoryInterface $config_factory)

Sets the config factory for this form.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

Return value

$this

1 call to FormBase::setConfigFactory()
ConfigFormBase::__construct in core/lib/Drupal/Core/Form/ConfigFormBase.php
Constructs a \Drupal\system\ConfigFormBase object.

File

core/lib/Drupal/Core/Form/FormBase.php, line 135

Class

FormBase
Provides a base class for forms.

Namespace

Drupal\Core\Form

Code

public function setConfigFactory(ConfigFactoryInterface $config_factory) {
  $this->configFactory = $config_factory;
  return $this;
}