We have syntax change in drupal 8 for base_path and base_path_url, Please have a look..
- base_path = base_path(); // This code is for base_url of site.
- base_path_url = \Drupal::request()->getpathInfo(); // This code for current page path.
- Front page = {{ url('<front>') }} // This code is for front page url.
- Theme directory path = url('{{ base_path ~ directory }} //This code is for theme's root directory
No comments:
Post a Comment