protected function ThemeHandler::dataForBartikBlocks in Commerce Demo 8
Data for the Bartik theme's blocks.
Parameters
array $data: The block definitions to alter.
File
- src/
ThemeHandler.php, line 188
Class
Namespace
Drupal\commerce_demoCode
protected function dataForBartikBlocks(array &$data) {
$data['facets_brand']['region'] = 'sidebar_first';
$data['facets_brand']['weight'] = 0;
$data['facets_categories']['region'] = 'sidebar_first';
$data['facets_categories']['weight'] = 1;
$data['facets_specialcategories']['region'] = 'sidebar_first';
$data['facets_specialcategories']['weight'] = 2;
$data['shopping_cart']['region'] = 'header';
$data['shopping_cart']['weight'] = NULL;
$data['catalog']['region'] = 'footer_first';
$data['catalog']['weight'] = -6;
$data['catalog_menu']['region'] = 'sidebar_first';
$data['catalog_menu']['weight'] = -8;
$data['catalog_menu']['settings']['label_display'] = 1;
$data['catalog_menu']['settings']['label'] = t('Catalog');
unset($data['catalog_menu_navigation']);
$data['breadcrumbs']['region'] = 'breadcrumb';
$data['breadcrumbs']['weight'] = 0;
}