/** * {@inheritdoc} */ public function getCurrentProductStatusIdentifier() { if ($this->hasCurrentProductStatus()) { return $this->currentProductStatus->getId(); } return null; }
/** * {@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]); }