protected function stripApiVersion(string $action): string
    {
        if (mb_strpos($action, 'api-v') === 0) {
            $action = preg_replace('/^api\-v[0-9]+[0-9.]*\./u', 'api.', $action);
        }
        return $action; // Without an API version.
    }
protected function stripApiVersion(string $action): string
    {
        if (mb_strpos($action, 'api-v') === 0) {
            $action = preg_replace('/^api\-v[0-9]+[0-9.]*\./u', 'api.', $action);
        }
        return $action; // Without an API version.
    }
protected function stripApiVersion ( string $ action ) : string { if ( mb_strpos ( $ action , 'api-v' ) === 0 ) { $ action = preg_replace ( '/^api\-v[0-9]+[0-9.]*\./u' , 'api.' , $ action ) ; } return $ action ; // Without an API version. }
Strip API version.

@since 160625 ReST utils.

@param string $action Action identifier.

@return string Action w/o the API version.
Strip API version .