예제 #1
0
 /**
  * Constructor
  *
  * @param ContextInterface $context
  * @param BlockInterface $block
  * @param array $components
  * @param array $data
  */
 public function __construct(ContextInterface $context, BlockInterface $block, array $components = [], array $data = [])
 {
     parent::__construct($context, $components, $data);
     $this->block = $block;
     $this->block->setLayout($context->getPageLayout());
 }