Namespace: Views

Drupal. Views

Methods

staticDrupal.Views.getPath(href){string}

Return the Drupal path portion of an href.

Name Type Description
href string

The href to check.

Returns:
Type Description
string An internal path.

staticDrupal.Views.parseQueryString(query){object}

Helper function to parse a querystring.

Name Type Description
query string

The querystring to parse.

Returns:
Type Description
object A map of query parameters.

staticDrupal.Views.parseViewArgs(href, viewPath){object}

Helper function to return a view's arguments based on a path.

Name Type Description
href string

The href to check.

viewPath string

The views path to check.

Returns:
Type Description
object An object containing view_args and view_path.

staticDrupal.Views.pathPortion(href){string}

Strip off the protocol plus domain from an href.

Name Type Description
href string

The href to strip.

Returns:
Type Description
string The href without the protocol and domain.