public function ResourceDecoratorBase::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/ Decorators/ ResourceDecoratorBase.php, line 212 - Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.
Class
- ResourceDecoratorBase
- Class ResourceDecoratorBase.
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function getVersion() {
return $this->subject
->getVersion();
}