src/Core/Config/ConfigFactoryTrait.php
public function getConfigFactory() {
    if (empty($this->configFactory)) {
      $this->configFactory = \Drupal::service('config.factory');
    }
    return $this->configFactory;
  }
public function getConfigFactory() {
    if (empty($this->configFactory)) {
      $this->configFactory = \Drupal::service('config.factory');
    }
    return $this->configFactory;
  }
public function getConfigFactory ( ) { if ( empty ( $ this -> configFactory ) ) { $ this -> configFactory = \ Drupal :: service ( 'config.factory' ) ; } return $ this -> configFactory ; }
Gets the config factory.

@return \Drupal\Core\Config\ConfigFactoryInterface
The config factory.
Gets the config factory .