Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Stock.php
Go to the documentation of this file.
1 <?php
7 
15 {
22  public function setTemplate($template)
23  {
24  if (!$this->_helper->isStockAlertAllowed() || !$this->getProduct() || $this->getProduct()->isAvailable()) {
25  $template = '';
26  } else {
27  $this->setSignupUrl($this->_helper->getSaveUrl('stock'));
28  }
29  return parent::setTemplate($template);
30  }
31 }
$template
Definition: export.php:12