|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\UrlFactory $urlFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Filter\FilterManager $filter, \Magento\Framework\Session\SidResolverInterface $sidResolver, UrlFinderInterface $urlFinder, array $data=[]) | |
| getUrlInStore (\Magento\Catalog\Model\Product $product, $params=[]) | |
| getProductUrl ($product, $useSid=null) | |
| formatUrlKey ($str) | |
| getUrl (\Magento\Catalog\Model\Product $product, $params=[]) | |
Public Member Functions inherited from DataObject | |
| __construct (array $data=[]) | |
| addData (array $arr) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| getDataByPath ($path) | |
| getDataByKey ($key) | |
| setDataUsingMethod ($key, $args=[]) | |
| getDataUsingMethod ($key, $args=null) | |
| hasData ($key='') | |
| toArray (array $keys=[]) | |
| convertToArray (array $keys=[]) | |
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| toJson (array $keys=[]) | |
| convertToJson (array $keys=[]) | |
| toString ($format='') | |
| __call ($method, $args) | |
| isEmpty () | |
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
| debug ($data=null, &$objects=[]) | |
| offsetSet ($offset, $value) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
| offsetGet ($offset) | |
Protected Attributes | |
| $urlFactory | |
| $filter | |
| $storeManager | |
| $sidResolver | |
| $urlFinder | |
Protected Attributes inherited from DataObject | |
| $_data = [] | |
Additional Inherited Members | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
| __construct | ( | \Magento\Framework\UrlFactory | $urlFactory, |
| \Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
| \Magento\Framework\Filter\FilterManager | $filter, | ||
| \Magento\Framework\Session\SidResolverInterface | $sidResolver, | ||
| UrlFinderInterface | $urlFinder, | ||
| array | $data = [] |
||
| ) |
| formatUrlKey | ( | $str | ) |
| getProductUrl | ( | $product, | |
$useSid = null |
|||
| ) |
Retrieve Product URL
| \Magento\Catalog\Model\Product | $product | |
| bool | $useSid | forced SID mode |
Definition at line 102 of file Url.php.
| getUrl | ( | \Magento\Catalog\Model\Product | $product, |
$params = [] |
|||
| ) |
Retrieve Product URL using UrlDataObject
| \Magento\Catalog\Model\Product | $product | |
| array | $params |
Definition at line 136 of file Url.php.
| getUrlInStore | ( | \Magento\Catalog\Model\Product | $product, |
$params = [] |
|||
| ) |
Retrieve URL in current store
| \Magento\Catalog\Model\Product | $product | |
| array | $params | the URL route params |
Definition at line 89 of file Url.php.