Frontend\Core\Engine\Url::getQueryString PHP Method

getQueryString() public method

Get the query string
public getQueryString ( ) : string
return string
    public function getQueryString()
    {
        return rtrim((string) $this->request->getRequestUri(), '/');
    }

Usage Example

Beispiel #1
0
 /**
  * Get the id of an item by the full URL of the current page.
  * Selects the proper part of the full URL to get the item's id from the database.
  *
  * @param FrontendURL $URL The current URL.
  * @return int
  */
 public static function getIdForTags(FrontendURL $URL)
 {
     return FrontendNavigation::getPageId($URL->getQueryString());
 }