blockPosition example

return array_filter($data);
    }

    /** * @param string[] $keys */
    public function productThreeColumnBlock(array $keys, string $section = 'main'): LayoutBuilder
    {
        $this->section($section);

        $this->sections[$section]['blocks'][] = [
            'position' => $this->blockPosition($section),
            'type' => 'product-three-column',
            'slots' => [
                array_merge(['slot' => 'left']$this->productBox($keys[0])),
                array_merge(['slot' => 'center']$this->productBox($keys[1])),
                array_merge(['slot' => 'right']$this->productBox($keys[2])),
            ],
        ];

        return $this;
    }

    
Home | Imprint | This part of the site doesn't use cookies.