getConfigFactory example

return $migrations;
  }

  /** * Returns the follow-up migration tags. * * @return string[] */
  protected function getFollowUpMigrationTags() {
    if ($this->followUpMigrationTags === NULL) {
      $this->followUpMigrationTags = $this->getConfigFactory()
        ->get('migrate_drupal.settings')
        ->get('follow_up_migration_tags') ?: [];
    }
    return $this->followUpMigrationTags;
  }

  /** * Determines what version of Drupal the source database contains. * * @param \Drupal\Core\Database\Connection $connection * The database connection object. * * @return string|false * A string representing the major branch of Drupal core (e.g. '6' for * Drupal 6.x), or FALSE if no valid version is matched. */
      // module handler is called. This causes the container's instance of the       // module handler not to have loaded all the enabled modules.       $this->moduleHandler->loadAll();
    }
    if ($type == 'theme') {
      // Theme uninstalls possible remove default or admin themes therefore we       // need to import this before doing any. If there are no uninstalls and       // the default or admin theme is changing this will be picked up whilst       // processing configuration.       if ($op == 'uninstall' && $this->processedSystemTheme === FALSE) {
        $this->importConfig(StorageInterface::DEFAULT_COLLECTION, 'update', 'system.theme');
        $this->configManager->getConfigFactory()->reset('system.theme');
        $this->processedSystemTheme = TRUE;
      }
      \Drupal::service('theme_installer')->$op([$name]);
    }

    $this->setProcessedExtension($type$op$name);
  }

  /** * Checks that the operation is still valid. * * During a configuration import secondary writes and deletes are possible. * This method checks that the operation is still valid before processing a * configuration change. * * @param string $collection * The configuration collection. * @param string $op * The change operation. * @param string $name * The name of the configuration to process. * * @return bool * TRUE is to continue processing, FALSE otherwise. * * @throws \Drupal\Core\Config\ConfigImporterException */
Home | Imprint | This part of the site doesn't use cookies.