/** * 2016-05-31 * @return string */ protected function urlForMyLocalPc() { return df_cc_path_t('https://mage2.pro/sandbox', $this->routePath()); }
/** @return string */ private function baseRelative() { return df_cc_path_t('df', 'api', 'google', 'fonts'); }
/** * 2016-07-12 * @param string $routePath * @param bool $requireHTTPS [optional] * @return string */ function df_url_callback($routePath, $requireHTTPS = false) { /** @var string $result */ $result = df_my_local() ? df_cc_path_t('https://mage2.pro/sandbox', $routePath) : df_url_frontend($routePath, ['_secure' => $requireHTTPS ? true : null]); if ($requireHTTPS && !df_my_local()) { df_assert_https($result); } return $result; }