I have the a drupalMy site is on http://drupal8.local/
Howhttp://drupal8.local/. How do iI get the path drupal8.local programatically ?
All the functions like Url::fromRoute('<'current'>')drupal8.local part of that URL?
Url::fromRoute('<'current'>') or base_path() are returningbase_path() returns the url apart from base url
i.e ifpath parth of the url is URL; For example, for http://drupal8.local/a/b/c/d/e/f, those functions willthey return '/a/b/c/d/e/f'
but i/a/b/c/d/e/f' when I just need 'drupal8.local' portion.
How to get this from the url 'drupal8.local'.
How can I get that part of the URL?