private function logConfigImportError($file, $config) {
    $config_data = Yaml::decode(file_get_contents($file));
    $message = $this->t('Failed attempt to update config "@name" from "@path" during Open Y update queue.', [
      '@path' => $file,
      '@name' => $config,
    ]);
    $this->upgradeLogManager->saveLoggerEntity($config, $config_data, $message);
    $dashboard_url = Url::fromRoute(OpenyUpgradeLogManager::DASHBOARD);
    $dashboard_link = Link::fromTextAndUrl(t('Open Y upgrade dashboard'), $dashboard_url);
    $this->logger->error($this->t('Could not update config @name. Please add this changes manual. More info here - @link.',
      [
        '@name' => $config,
        '@link' => $dashboard_link->toString(),
      ]
    ));
  }
private function logConfigImportError($file, $config) {
    $config_data = Yaml::decode(file_get_contents($file));
    $message = $this->t('Failed attempt to update config "@name" from "@path" during Open Y update queue.', [
      '@path' => $file,
      '@name' => $config,
    ]);
    $this->upgradeLogManager->saveLoggerEntity($config, $config_data, $message);
    $dashboard_url = Url::fromRoute(OpenyUpgradeLogManager::DASHBOARD);
    $dashboard_link = Link::fromTextAndUrl(t('Open Y upgrade dashboard'), $dashboard_url);
    $this->logger->error($this->t('Could not update config @name. Please add this changes manual. More info here - @link.',
      [
        '@name' => $config,
        '@link' => $dashboard_link->toString(),
      ]
    ));
  }
private function logConfigImportError ( $ file , $ config ) { $ config_data = Yaml :: decode ( file_get_contents ( $ file ) ) ; $ message = $ this -> t ( 'Failed attempt to update config "@name" from "@path" during Open Y update queue.' , [ '@path' => $ file , '@name' => $ config , ] ) ; $ this -> upgradeLogManager -> saveLoggerEntity ( $ config , $ config_data , $ message ) ; $ dashboard_url = Url :: fromRoute ( OpenyUpgradeLogManager :: DASHBOARD ) ; $ dashboard_link = Link :: fromTextAndUrl ( t ( 'Open Y upgrade dashboard' ) , $ dashboard_url ) ; $ this -> logger -> error ( $ this -> t ( 'Could not update config @name. Please add this changes manual. More info here - @link.' , [ '@name' => $ config , '@link' => $ dashboard_link -> toString ( ) , ] ) ) ; }
Helper function for config import error log.

@param string $file
Full path to file including file name.
@param string $config
Config name.
Helper function for config import error log .