How can I get current country pathPrefix in D8 ?
I know drupalSettings.path.pathPrefix
gives that in JS, but how can I get it in preprocess hook ?
Following gives only the path alias, but without pathPrefix.
\Drupal::service('path.alias_manager')->getAliasByPath('/node/'.$nid[0]);