Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::configFactory
  2. 9 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::configFactory

The config factory.

Subclasses should use the self::config() method, which may be overridden to address specific needs when loading config, rather than this property directly. See \Drupal\Core\Form\ConfigFormBase::config() for an example of this.

Type: \Drupal\Core\Config\ConfigFactoryInterface

File

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

Class

FormBase
Provides a base class for forms.

Namespace

Drupal\Core\Form

Code

protected $configFactory;