function ConfigFormBase::typedConfigManager

Same name and namespace in other branches
  1. 11.x 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 69

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.