public function importConfig($module, $name, $hash) {
    $configPath = drupal_get_path('module', $module) . '/config/install';
    $source = new FileStorage($configPath);
    $data = $source->read($name);
    if (!$data || !$this->configManager->compare($name, $hash)) {
      return false;
    }

    return $this->configStorage->write($name, $data);
  }
public function importConfig($module, $name, $hash) {
    $configPath = drupal_get_path('module', $module) . '/config/install';
    $source = new FileStorage($configPath);
    $data = $source->read($name);
    if (!$data || !$this->configManager->compare($name, $hash)) {
      return false;
    }

    return $this->configStorage->write($name, $data);
  }
public function importConfig ( $ module , $ name , $ hash ) { $ configPath = drupal_get_path ( 'module' , $ module ) . '/config/install' ; $ source = new FileStorage ( $ configPath ) ; $ data = $ source -> read ( $ name ) ; if ( ! $ data || ! $ this -> configManager -> compare ( $ name , $ hash ) ) { return false ; } return $ this -> configStorage -> write ( $ name , $ data ) ; }
Import a config file.

@param string $module
Module name.
@param string $name
Config file name without .yml extension.
@param string $hash
Hashed array with config data.

@return bool
Returns if config was imported successfully.
Import a config file .