| 1 | <?php |
||
| 14 | class View extends \Magento\Framework\View\Element\Template |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Route frontname used in URL |
||
| 18 | */ |
||
| 19 | const ROUTE = "personalised"; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \Magento\Framework\Registry |
||
| 23 | */ |
||
| 24 | protected $_coreRegistry; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * View constructor. |
||
| 28 | * @param Context $context |
||
| 29 | */ |
||
| 30 | public function __construct(Context $context) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get current product instance |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function getProduct() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get the current products ID for recording the product view |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function getProductId() |
||
| 55 | |||
| 56 | } |
||
| 57 |