You are here

protected function ThemeHandler::dataForBelgradeBlocks in Commerce Demo 8

Data for the Belgrade theme's blocks.

Parameters

array $data: The block definitions to alter.

File

src/ThemeHandler.php, line 217

Class

ThemeHandler

Namespace

Drupal\commerce_demo

Code

protected function dataForBelgradeBlocks(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'] = 'top_navigation';
  $data['shopping_cart']['weight'] = -5;
  $data['catalog']['region'] = 'footer';
  $data['catalog']['weight'] = -6;
  $data['catalog_menu']['region'] = 'header';
  $data['catalog_menu']['weight'] = -8;
  $data['catalog_menu_navigation']['region'] = 'navigation';
  $data['catalog_menu_navigation']['weight'] = 0;
  $data['breadcrumbs']['region'] = 'highlighted';
  $data['breadcrumbs']['weight'] = -7;
}