You are here

public function ResourceDecoratorBase::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.

Overrides ResourceInterface::versionedUrl

See also

url()

4 calls to ResourceDecoratorBase::versionedUrl()
CacheDecoratedResource::view in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Basic implementation for view.
ResourceDecoratorBase::doDelete in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Shorthand method to perform a quick DELETE request.
ResourceDecoratorBase::doGet in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Shorthand method to perform a quick GET request.
ResourceDecoratorBase::doWrite in src/Plugin/resource/Decorators/ResourceDecoratorBase.php

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 219
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function versionedUrl($path = '', $options = array(), $version_string = TRUE) {
  return $this->subject
    ->versionedUrl($path, $options, $version_string);
}