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