Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
Link.php
Go to the documentation of this file.
1 <?php
7 
9 
18 {
22  protected $_customerUrl;
23 
29  public function __construct(
30  \Magento\Framework\View\Element\Template\Context $context,
32  array $data = []
33  ) {
34  $this->_customerUrl = $customerUrl;
35  parent::__construct($context, $data);
36  }
37 
41  public function getHref()
42  {
43  return $this->_customerUrl->getAccountUrl();
44  }
45 
50  public function getSortOrder()
51  {
52  return $this->getData(self::SORT_ORDER);
53  }
54 }
getData($key='', $index=null)
Definition: DataObject.php:119
$customerUrl
Definition: info.phtml:28