You are here

public function ResourceInterface::getUrl in RESTful 7.2

Helper method; Get the URL of the resource and query strings.

By default the URL is absolute.

Parameters

array $options: Array with options passed to url().

bool $keep_query: If TRUE the $request will be appended to the $options['query']. This is the typical behavior for $_GET method, however it is not for $_POST. Defaults to TRUE.

RequestInterface $request: The request object.

Return value

string The URL address.

2 methods override ResourceInterface::getUrl()
Resource::getUrl in src/Plugin/resource/Resource.php
Helper method; Get the URL of the resource and query strings.
ResourceDecoratorBase::getUrl in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Helper method; Get the URL of the resource and query strings.

File

src/Plugin/resource/ResourceInterface.php, line 373
Contains \Drupal\restful\Plugin\resource\ResourceInterface.

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function getUrl(array $options = array(), $keep_query = TRUE, RequestInterface $request = NULL);