layout_bg-8.x-1.0/examples/layout_bg_bricks/layout_bg_bricks.layouts.yml

examples/layout_bg_bricks/layout_bg_bricks.layouts.yml
# See layout_discover.layout.yml.
# Compare to layout_twocol_bricks.
# Changes we made...
# 1. Use layout__layout_bg as thew theme_hook.
#    Remove the template key in favor of theme_hook.
#    We also remove the path key.
# 2. Add our very simple layout class as the class.
#    It is defined in this example module.
#    Note that the class sets 'layout--twocol-bricks.html.twig'
#    as the base template. That's the template declared in
#    layout_discover.layout.yml for layout_twocol_bricks.
# 3. Use the library defined in this example module as the library.
# 4. Add background to the list of regions.
layout_bg_bricks:
  label: 'Two column bricks with Background Image'
  theme_hook: layout__layout_bg
  library: layout_bg_bricks/layout_bg_bricks
  class: '\Drupal\layout_bg_bricks\Plugin\Layout\LayoutBgBricks'
  category: 'Columns: 2'
  default_region: middle
  icon_map:
    - [top]
    - [first_above, second_above]
    - [middle]
    - [first_below, second_below]
    - [bottom]
  regions:
    background:
      label: Background
    top:
      label: Top
    first_above:
      label: 'First above'
    second_above:
      label: 'Second above'
    middle:
      label: Middle
    first_below:
      label: 'First below'
    second_below:
      label: 'Second below'
    bottom:
      label: Bottom

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc