function ConfigFormBase::typedConfigManager

Same name in other branches
  1. 10 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::typedConfigManager()

Returns the typed config manager service.

Return value

\Drupal\Core\Config\TypedConfigManagerInterface The typed config manager service.

File

core/lib/Drupal/Core/Form/ConfigFormBase.php, line 67

Class

ConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\Core\Form

Code

protected function typedConfigManager() : TypedConfigManagerInterface {
    if ($this->typedConfigManager instanceof TypedConfigManagerInterface) {
        return $this->typedConfigManager;
    }
    return \Drupal::service('config.typed');
}

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