updated core from 8.4 to 8.5 : bug with login_destination
This commit is contained in:
@@ -5,8 +5,8 @@ package: Core
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-01-03
|
||||
version: '8.4.4'
|
||||
# Information added by Drupal.org packaging script on 2018-03-07
|
||||
version: '8.5.0'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1515021228
|
||||
datestamp: 1520457825
|
||||
|
||||
@@ -5,6 +5,8 @@ layout_onecol:
|
||||
library: layout_discovery/onecol
|
||||
category: 'Columns: 1'
|
||||
default_region: content
|
||||
icon_map:
|
||||
- [content]
|
||||
regions:
|
||||
content:
|
||||
label: Content
|
||||
@@ -16,6 +18,10 @@ layout_twocol:
|
||||
library: layout_discovery/twocol
|
||||
category: 'Columns: 2'
|
||||
default_region: first
|
||||
icon_map:
|
||||
- [top]
|
||||
- [first, second]
|
||||
- [bottom]
|
||||
regions:
|
||||
top:
|
||||
label: Top
|
||||
@@ -33,6 +39,12 @@ layout_twocol_bricks:
|
||||
library: layout_discovery/twocol_bricks
|
||||
category: 'Columns: 2'
|
||||
default_region: middle
|
||||
icon_map:
|
||||
- [top]
|
||||
- [first_above, second_above]
|
||||
- [middle]
|
||||
- [first_below, second_below]
|
||||
- [bottom]
|
||||
regions:
|
||||
top:
|
||||
label: Top
|
||||
@@ -56,6 +68,10 @@ layout_threecol_25_50_25:
|
||||
library: layout_discovery/threecol_25_50_25
|
||||
category: 'Columns: 3'
|
||||
default_region: second
|
||||
icon_map:
|
||||
- [top]
|
||||
- [first, second, second, third]
|
||||
- [bottom]
|
||||
regions:
|
||||
top:
|
||||
label: Top
|
||||
@@ -75,6 +91,10 @@ layout_threecol_33_34_33:
|
||||
library: layout_discovery/threecol_33_34_33
|
||||
category: 'Columns: 3'
|
||||
default_region: first
|
||||
icon_map:
|
||||
- [top]
|
||||
- [first, second, third]
|
||||
- [bottom]
|
||||
regions:
|
||||
top:
|
||||
label: Top
|
||||
|
||||
@@ -2,3 +2,6 @@ services:
|
||||
plugin.manager.core.layout:
|
||||
class: Drupal\Core\Layout\LayoutPluginManager
|
||||
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@theme_handler']
|
||||
layout.icon_builder:
|
||||
class: Drupal\Core\Layout\Icon\SvgIconBuilder
|
||||
shared: false
|
||||
|
||||
@@ -33,6 +33,17 @@ class LayoutTest extends KernelTestBase {
|
||||
$this->layoutPluginManager = $this->container->get('plugin.manager.core.layout');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that a layout provided by a theme has the preprocess function set.
|
||||
*/
|
||||
public function testThemeProvidedLayout() {
|
||||
$this->container->get('theme_installer')->install(['test_layout_theme']);
|
||||
$this->config('system.theme')->set('default', 'test_layout_theme')->save();
|
||||
|
||||
$theme_definitions = $this->container->get('theme.registry')->get();
|
||||
$this->assertTrue(in_array('template_preprocess_layout', $theme_definitions['test_layout_theme']['preprocess functions']));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test rendering a layout.
|
||||
*
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{{ content.content }}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
name: 'Test layout theme'
|
||||
type: theme
|
||||
description: 'Theme for testing a theme-provided layout'
|
||||
# version: VERSION
|
||||
base theme: classy
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-03-07
|
||||
version: '8.5.0'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1520457825
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
test_layout_theme:
|
||||
label: 'Test Layout - Theme'
|
||||
category: 'Test Layout Theme'
|
||||
template: templates/test-layout-theme
|
||||
regions:
|
||||
content:
|
||||
label: Content
|
||||
Reference in New Issue
Block a user