WellCommerce\Bundle\LayoutBundle\Entity\LayoutBoxInterface::getBoxType PHP Method

getBoxType() public method

public getBoxType ( ) : string
return string
    public function getBoxType() : string;

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function resolveControllerService(LayoutBoxInterface $layoutBox)
 {
     $boxType = $layoutBox->getBoxType();
     $configurator = $this->layoutBoxConfiguratorCollection->get($boxType);
     $service = $configurator->getControllerService();
     if (!$this->container->has($service)) {
         throw new ServiceNotFoundException($service);
     }
     return $this->container->get($service);
 }