Piwik\Plugins\Marketplace\Api\Service::getVersion PHP Method

getVersion() public method

The API version that will be used on the Marketplace.
public getVersion ( ) : string
return string eg 2.0
    public function getVersion()
    {
        return $this->version;
    }

Usage Example

Example #1
0
 private function getCacheKey($action, $query)
 {
     $version = $this->service->getVersion();
     return sprintf('marketplace.api.%s.%s.%s', $version, str_replace('/', '.', $action), md5($query));
 }