- Source:
Methods
(static) getPath(href) → {string}
Return the Drupal path portion of an href.
Parameters:
Name | Type | Description |
---|---|---|
href |
string | The href to check. |
- Source:
Returns:
An internal path.
- Type
- string
(static) parseQueryString(query) → {object}
Helper function to parse a querystring.
Parameters:
Name | Type | Description |
---|---|---|
query |
string | The querystring to parse. |
- Source:
Returns:
A map of query parameters.
- Type
- object
(static) parseViewArgs(href, viewPath) → {object}
Helper function to return a view's arguments based on a path.
Parameters:
Name | Type | Description |
---|---|---|
href |
string | The href to check. |
viewPath |
string | The views path to check. |
- Source:
Returns:
An object containing view_args
and view_path
.
- Type
- object
(static) pathPortion(href) → {string}
Strip off the protocol plus domain from an href.
Parameters:
Name | Type | Description |
---|---|---|
href |
string | The href to strip. |
- Source:
Returns:
The href without the protocol and domain.
- Type
- string