How do i run the equivalent of single configuration import from a hook?
if (\Drupal::moduleHandler()-&gt;moduleExists('views') &amp;&amp; !View::load('view_name')) {
    $config_path = DRUPAL_ROOT.'/configurationpathto/views_view_view_name.yml';
    $data = Yaml::parse($config_path);
    \Drupal::configFactory()-&gt;getEditable('views.view.view_name')-&gt;setData($data)-&gt;save(TRUE);
  }