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