You are here

protected function MigrationConfigurationTrait::getConfigFactory in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/src/MigrationConfigurationTrait.php \Drupal\migrate_drupal\MigrationConfigurationTrait::getConfigFactory()
  2. 10 core/modules/migrate_drupal/src/MigrationConfigurationTrait.php \Drupal\migrate_drupal\MigrationConfigurationTrait::getConfigFactory()

Gets the config factory service.

Return value

\Drupal\Core\Config\ConfigFactoryInterface The config factory service.

File

core/modules/migrate_drupal/src/MigrationConfigurationTrait.php, line 256

Class

MigrationConfigurationTrait
Configures the appropriate migrations for a given source Drupal database.

Namespace

Drupal\migrate_drupal

Code

protected function getConfigFactory() {
  if (!$this->configFactory) {
    $this->configFactory = \Drupal::service('config.factory');
  }
  return $this->configFactory;
}