วิธี get base url ของ Drupal 8

Submitted by admin on Thu, 12/07/2017 - 00:35
$host = \Drupal::request()->getHost();    ==> drupal.dev

$host = \Drupal::request()->getSchemeAndHttpHost();  ==> http://drupal.dev