diff --git a/core/modules/system/src/Block/SystemPageActionsBlock.php b/core/modules/system/src/Plugin/Block/SystemPageActionsBlock.php similarity index 100% rename from core/modules/system/src/Block/SystemPageActionsBlock.php rename to core/modules/system/src/Plugin/Block/SystemPageActionsBlock.php diff --git a/core/modules/system/src/Block/SystemPageTabsBlock.php b/core/modules/system/src/Plugin/Block/SystemPageTabsBlock.php similarity index 100% rename from core/modules/system/src/Block/SystemPageTabsBlock.php rename to core/modules/system/src/Plugin/Block/SystemPageTabsBlock.php diff --git a/core/modules/system/src/Block/SystemPageTitleBlock.php b/core/modules/system/src/Plugin/Block/SystemPageTitleBlock.php similarity index 100% rename from core/modules/system/src/Block/SystemPageTitleBlock.php rename to core/modules/system/src/Plugin/Block/SystemPageTitleBlock.php diff --git a/core/profiles/standard/config/install/block.block.bartik_page_actions.yml b/core/profiles/standard/config/install/block.block.bartik_page_actions.yml new file mode 100644 index 0000000..4e051e8 --- /dev/null +++ b/core/profiles/standard/config/install/block.block.bartik_page_actions.yml @@ -0,0 +1,18 @@ +id: bartik_page_actions +theme: bartik +weight: 10 +status: true +langcode: en +region: actions +plugin: system_page_actions_block +settings: + id: system_page_actions_block + label: Page actions + provider: system + label_display: '0' +dependencies: + module: + - system + theme: + - bartik +visibility: { } diff --git a/core/profiles/standard/config/install/block.block.bartik_page_tabs.yml b/core/profiles/standard/config/install/block.block.bartik_page_tabs.yml new file mode 100644 index 0000000..c8cf59a --- /dev/null +++ b/core/profiles/standard/config/install/block.block.bartik_page_tabs.yml @@ -0,0 +1,18 @@ +id: bartik_page_tabs +theme: bartik +weight: 10 +status: true +langcode: en +region: tabs +plugin: system_page_tabs_block +settings: + id: system_page_tabs_block + label: Page tabs + provider: system + label_display: '0' +dependencies: + module: + - system + theme: + - bartik +visibility: { } diff --git a/core/profiles/standard/config/install/block.block.bartik_page_title.yml b/core/profiles/standard/config/install/block.block.bartik_page_title.yml new file mode 100644 index 0000000..ff73d59 --- /dev/null +++ b/core/profiles/standard/config/install/block.block.bartik_page_title.yml @@ -0,0 +1,18 @@ +id: bartik_page_title +theme: bartik +weight: 10 +status: true +langcode: en +region: title +plugin: system_page_title_block +settings: + id: system_page_title_block + label: Page title + provider: system + label_display: '0' +dependencies: + module: + - system + theme: + - bartik +visibility: { } diff --git a/core/profiles/standard/config/install/block.block.seven_page_actions.yml b/core/profiles/standard/config/install/block.block.seven_page_actions.yml new file mode 100644 index 0000000..7802a57 --- /dev/null +++ b/core/profiles/standard/config/install/block.block.seven_page_actions.yml @@ -0,0 +1,18 @@ +id: page_actions +theme: seven +weight: 0 +status: true +langcode: en +region: actions +plugin: system_page_actions_block +settings: + id: system_page_actions_block + label: Page actions + provider: system + label_display: '0' +dependencies: + module: + - system + theme: + - seven +visibility: { } diff --git a/core/profiles/standard/config/install/block.block.seven_page_tabs.yml b/core/profiles/standard/config/install/block.block.seven_page_tabs.yml new file mode 100644 index 0000000..9b9995a --- /dev/null +++ b/core/profiles/standard/config/install/block.block.seven_page_tabs.yml @@ -0,0 +1,18 @@ +id: page_tabs +theme: seven +weight: 0 +status: true +langcode: en +region: tabs +plugin: system_page_tabs_block +settings: + id: system_page_tabs_block + label: Page tabs + provider: system + label_display: '0' +dependencies: + module: + - system + theme: + - seven +visibility: { } diff --git a/core/profiles/standard/config/install/block.block.seven_page_title.yml b/core/profiles/standard/config/install/block.block.seven_page_title.yml new file mode 100644 index 0000000..ae1cb30 --- /dev/null +++ b/core/profiles/standard/config/install/block.block.seven_page_title.yml @@ -0,0 +1,18 @@ +id: page_title +theme: seven +weight: 0 +status: true +langcode: en +region: title +plugin: system_page_title_block +settings: + id: system_page_title_block + label: Page Title + provider: system + label_display: '0' +dependencies: + module: + - system + theme: + - seven +visibility: { } diff --git a/core/themes/seven/seven.info.yml b/core/themes/seven/seven.info.yml index 4c6ef7f..a4cacf6 100644 --- a/core/themes/seven/seven.info.yml +++ b/core/themes/seven/seven.info.yml @@ -25,6 +25,7 @@ regions: sidebar_first: 'First sidebar' breadcrumb: Breadcrumb title: Title + tabs: Tabs actions: Actions regions_hidden: - sidebar_first diff --git a/core/themes/seven/templates/page.html.twig b/core/themes/seven/templates/page.html.twig index eac229c..8964396 100644 --- a/core/themes/seven/templates/page.html.twig +++ b/core/themes/seven/templates/page.html.twig @@ -47,6 +47,7 @@ * - page.page_bottom: Items for the footer region. * - page.breadcrumb: Items for the breadcrumb region. * - page.title: Items for the page title region. + * - page.tabs: Items for the tabs region. * - page.actions: Items for the actions region. * * @see template_preprocess_page() @@ -61,6 +62,11 @@

{{ page.title }}

{% endif %} {{ title_suffix }} + {% if page.tabs %} + + {% endif %} {% if primary_local_tasks %} {{ primary_local_tasks }} {% endif %}