protected function viaApi(string $action): bool
    {
        if (mb_strpos($action, 'api.') === 0) {
            return true; // Saves time in many cases.
        }
        return mb_strpos($action, 'api-v') === 0 && preg_match('/^api\-v[0-9]+[0-9.]*\./u', $action);
    }
protected function viaApi(string $action): bool
    {
        if (mb_strpos($action, 'api.') === 0) {
            return true; // Saves time in many cases.
        }
        return mb_strpos($action, 'api-v') === 0 && preg_match('/^api\-v[0-9]+[0-9.]*\./u', $action);
    }
protected function viaApi ( string $ action ) : bool { if ( mb_strpos ( $ action , 'api.' ) === 0 ) { return true ; // Saves time in many cases. } return mb_strpos ( $ action , 'api-v' ) === 0 && preg_match ( '/^api\-v[0-9]+[0-9.]*\./u' , $ action ) ; }
An action via API?

@since 160625 ReST utils.

@param string $action Action identifier.

@return bool True if it's an action via API.
An action via API?