FormBase::$configFactory

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::configFactory
  2. 8.9.x core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::configFactory
  3. 11.x 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;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.