Is there a way to import Drupal variables into a the twig template?
You can't directly use these functions in a Twig file. Instead, you can preprocess the page and store your configuration settings in a variable that is passed to the template file, and display that variable in the template file.

function mytheme_preprocess_page(&amp;$vars) {
  $vars['new_var'] = $config-&gt;get('id');
}


You can render your variable with {{ new_var }}.