src/Robo/Commands/Setup/ConfigCommand.php
protected function importFeatures($task, $cm_core_key) {
    $task->drush("config-import")->arg($cm_core_key)->option('partial');
    $task->drush("pm-enable")->arg('features');
    $task->drush("cc")->arg('drush');
    if ($this->getConfig()->has('cm.features.bundle')) {
      // Clear drush caches to register features drush commands.
      foreach ($this->getConfigValue('cm.features.bundle') as $bundle) {
        $task->drush("features-import-all")->option('bundle', $bundle);
        // Revert all features again!
        // @see https://www.drupal.org/node/2851532
        $task->drush("features-import-all")->option('bundle', $bundle);
      }
    }
  }
protected function importFeatures($task, $cm_core_key) {
    $task->drush("config-import")->arg($cm_core_key)->option('partial');
    $task->drush("pm-enable")->arg('features');
    $task->drush("cc")->arg('drush');
    if ($this->getConfig()->has('cm.features.bundle')) {
      // Clear drush caches to register features drush commands.
      foreach ($this->getConfigValue('cm.features.bundle') as $bundle) {
        $task->drush("features-import-all")->option('bundle', $bundle);
        // Revert all features again!
        // @see https://www.drupal.org/node/2851532
        $task->drush("features-import-all")->option('bundle', $bundle);
      }
    }
  }
protected function importFeatures ( $ task , $ cm_core_key ) { $ task -> drush ( "config-import" ) -> arg ( $ cm_core_key ) -> option ( 'partial' ) ; $ task -> drush ( "pm-enable" ) -> arg ( 'features' ) ; $ task -> drush ( "cc" ) -> arg ( 'drush' ) ; if ( $ this -> getConfig ( ) -> has ( 'cm.features.bundle' ) ) { // Clear drush caches to register features drush commands. foreach ( $ this -> getConfigValue ( 'cm.features.bundle' ) as $ bundle ) { $ task -> drush ( "features-import-all" ) -> option ( 'bundle' , $ bundle ) ; // Revert all features again! // @see https://www.drupal.org/node/2851532 $ task -> drush ( "features-import-all" ) -> option ( 'bundle' , $ bundle ) ; } } }
Import configuration using features module.

@param \Acquia\Blt\Robo\Tasks\DrushTask $task
@param string $cm_core_key
Import configuration using features module .