1 | <?php |
||
14 | class View extends \Magento\Framework\View\Element\Template |
||
15 | { |
||
16 | /** |
||
17 | * @var \Magento\Framework\Registry |
||
18 | */ |
||
19 | protected $_coreRegistry; |
||
20 | |||
21 | /** |
||
22 | * View constructor. |
||
23 | * @param Context $context |
||
24 | */ |
||
25 | public function __construct(Context $context) |
||
30 | |||
31 | /** |
||
32 | * Get current product instance |
||
33 | * |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getProduct() |
||
40 | |||
41 | /** |
||
42 | * Get the current products ID for recording the product view |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function getProductId() |
||
50 | |||
51 | /** |
||
52 | * Build product view URL for making AJAX calls |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getProductViewUrl() |
||
60 | } |
||
61 |