Answers for "Drupal 8 Get URL from Request"

1

drupal 8 get url query parameters

// URL query parameter.
\Drupal::request()->query->get('keys');

\Drupal::request()->query->all()
Posted by: Guest on September-18-2020
0

drupal 8 get site base url

$host = \Drupal::request()->getSchemeAndHttpHost();
Posted by: Guest on October-12-2020

Code answers related to "Drupal 8 Get URL from Request"

Browse Popular Code Answers by Language