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

getBoxType() public method

public getBoxType ( ) : string
return string
    public function getBoxType() : string
    {
        return $this->boxType;
    }

Usage Example

コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function resolveControllerService(LayoutBox $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);
 }