You are here

public function ResourceManagerInterface::getResourceLastVersion in RESTful 7.2

Return the last version for a given resource.

Parameters

string $resource_name: The name of the resource.

int $major_version: Get the last version for this major version. If NULL the last major version for the resource will be used.

Return value

array Array containing the majorVersion and minorVersion.

1 method overrides ResourceManagerInterface::getResourceLastVersion()
ResourceManager::getResourceLastVersion in src/Resource/ResourceManager.php
Return the last version for a given resource.

File

src/Resource/ResourceManagerInterface.php, line 130
Contains \Drupal\restful\Resource\ResourceManagerInterface.

Class

ResourceManagerInterface

Namespace

Drupal\restful\Resource

Code

public function getResourceLastVersion($resource_name, $major_version = NULL);