You are here

public function ResourceInterface::versionedUrl in RESTful 7.2

Gets a resource URL based on the current version.

Parameters

string $path: The path for the resource

array $options: Array of options as in url().

bool $version_string: TRUE to add the version string to the URL. FALSE otherwise.

Return value

string The fully qualified URL.

See also

url()

2 methods override ResourceInterface::versionedUrl()
Resource::versionedUrl in src/Plugin/resource/Resource.php
Gets a resource URL based on the current version.
ResourceDecoratorBase::versionedUrl in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Gets a resource URL based on the current version.

File

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

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function versionedUrl($path = '', $options = array(), $version_string = TRUE);