public function Resource::getVersion in RESTful 7.2
Return array keyed with the major and minor version of the resource.
Return value
array Keyed array with the major and minor version as provided in the plugin definition.
Overrides ResourceInterface::getVersion
File
- src/
Plugin/ resource/ Resource.php, line 478 - Contains \Drupal\restful\Plugin\resource\Resource.
Class
Namespace
Drupal\restful\Plugin\resourceCode
public function getVersion() {
$plugin_definition = $this
->getPluginDefinition();
$version = array(
'major' => $plugin_definition['majorVersion'],
'minor' => $plugin_definition['minorVersion'],
);
return $version;
}