Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UrlInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework;
7 
12 interface UrlInterface
13 {
17  const URL_TYPE_LINK = 'link';
18  const URL_TYPE_DIRECT_LINK = 'direct_link';
19  const URL_TYPE_WEB = 'web';
20  const URL_TYPE_MEDIA = 'media';
21  const URL_TYPE_STATIC = 'static';
22  const URL_TYPE_JS = 'js';
30  const DEFAULT_URL_TYPE = 'link';
31 
35  const DEFAULT_CONTROLLER_NAME = 'index';
36 
40  const DEFAULT_ACTION_NAME = 'index';
41 
45  const REWRITE_REQUEST_PATH_ALIAS = 'rewrite_request_path';
46 
50  const SESSION_NAMESPACE = 'frontend';
51 
58  public function getUseSession();
59 
66  public function getBaseUrl($params = []);
67 
73  public function getCurrentUrl();
74 
82  public function getRouteUrl($routePath = null, $routeParams = null);
83 
89  public function addSessionParam();
90 
97  public function addQueryParams(array $data);
98 
106  public function setQueryParam($key, $data);
107 
115  public function getUrl($routePath = null, $routeParams = null);
116 
123  public function escape($value);
124 
132  public function getDirectUrl($url, $params = []);
133 
140  public function sessionUrlVar($html);
141 
147  public function isOwnOriginUrl();
148 
156  public function getRedirectUrl($url);
157 
164  public function setScope($params);
165 }
$value
Definition: gender.phtml:16
getUrl($routePath=null, $routeParams=null)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18
getRouteUrl($routePath=null, $routeParams=null)
getDirectUrl($url, $params=[])