function MigrationConfigurationTrait::getConfigFactory

Same name 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()
  3. 11.x 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;
}

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