/** * {@inheritdoc} */ public function getCurrentProducerIdentifier() { if ($this->hasCurrentProducer()) { return $this->currentProducer->getId(); } return null; }
public function indexAction(ProducerInterface $producer) : Response { $this->getBreadcrumbProvider()->add(new Breadcrumb(['label' => $producer->translate()->getName()])); $this->getProducerStorage()->setCurrentProducer($producer); return $this->displayTemplate('index', ['producer' => $producer]); }
public function indexAction(ProducerInterface $producer) { $this->addBreadCrumbItem(new BreadcrumbItem(['name' => $producer->translate()->getName()])); $this->manager->getProducerContext()->setCurrentProducer($producer); return $this->displayTemplate('index', ['producer' => $producer]); }