protected function createProductStatusesBoxes()
{
$boxes = [0 => ['type' => 'ProductStatus', 'identifier' => 'product_bestseller', 'name' => 'Bestsellers', 'settings' => ['status' => $this->getReference('product_status_Bestsellers')->getId()]], 1 => ['type' => 'ProductStatus', 'identifier' => 'product_new_arrivals', 'name' => 'New arrivals', 'settings' => ['status' => $this->getReference('product_status_New arrivals')->getId()]], 2 => ['type' => 'ProductShowcase', 'identifier' => 'product_showcase', 'name' => 'Showcase', 'settings' => ['status' => $this->getReference('product_status_Featured')->getId()]], 3 => ['type' => 'ProductStatus', 'identifier' => 'product_dynamic_status', 'name' => 'Dynamic product status box', 'settings' => []], 4 => ['type' => 'Search', 'identifier' => 'search', 'name' => 'Product search box', 'settings' => []]];
foreach ($boxes as $index => $params) {
$this->createLayoutBox($params['type'], $params['identifier'], $params['name'], $params['settings']);
}
}