Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getCurrentProductStatusIdentifier()
 {
     if ($this->hasCurrentProductStatus()) {
         return $this->currentProductStatus->getId();
     }
     return null;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function indexAction(ProductStatusInterface $productStatus)
 {
     $this->addBreadCrumbItem(new BreadcrumbItem(['name' => $productStatus->translate()->getName()]));
     $this->manager->getProductStatusContext()->setCurrentProductStatus($productStatus);
     return $this->displayTemplate('index', ['status' => $productStatus]);
 }