Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: extends WellCommerce\Bundle\CoreBundle\Entity\TranslatableInterface, extends WellCommerce\Bundle\CoreBundle\Entity\TimestampableInterface, extends WellCommerce\Bundle\CoreBundle\Entity\BlameableInterface, extends WellCommerce\Bundle\ShopBundle\Entity\ShopCollectionAwareInterface
 /**
  * {@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]);
 }