Example #1
0
 /**
  * 2016-05-31
  * @return string
  */
 protected function urlForOthers()
 {
     return df_url_frontend($this->routePath(), ['_secure' => $this->requireHttps() ? true : null]);
 }
Example #2
0
 /**
  * 2016-08-27
  * @return string
  */
 protected function customerReturn()
 {
     return df_url_frontend($this->route('customerReturn'));
 }
Example #3
0
/**
 * 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;
}
Example #4
0
 /**
  * 2015-11-28
  * @override
  * @see \Df\Framework\Form\Hidden::onFormInitialized()
  * @used-by \Df\Framework\Plugin\Data\Form\Element\AbstractElement::afterSetForm()
  * @return void
  */
 public function onFormInitialized()
 {
     parent::onFormInitialized();
     $this->addClass('df-google-font');
     df_fe_init($this, __CLASS__, df_asset_third_party('Select2/main.css'), ['dataSource' => df_url_frontend('df-google-font'), 'value' => $this['value']]);
 }