Commit aead8ca4 authored by webchick's avatar webchick

Issue #2809635 by markconroy, navneet0693, alexpott, smaz, larowlan, Eli-T,...

Issue #2809635 by markconroy, navneet0693, alexpott, smaz, larowlan, Eli-T, webchick, yoroy, ikit-claw, budda, kjay, timmillwood, tkoleary, Gábor Hojtsy, andrewmacpherson, lauriii, JayKandari, jibran, ok_lyndsey, big_man, ckrina, nathancz, Paul_Gregory, vijaycs85, SharJay, tomphippen, tim.plunkett, Tarun Lewis, cehfisher, kreynen, Petr Illek, mariohernandez, thamas, thatdamnqa, John Cook, philipnorton42, h2cm, kattekrab, martin_q, waako: Create experimental installation profile
parent 47c2dda6
......@@ -21,25 +21,20 @@ class SingleVisibleProfileTest extends InstallerTestBase {
*/
protected $profile = NULL;
/**
* The install profile info.
*
* @var array
*/
protected $info;
protected function setUp() {
$this->info = [
'type' => 'profile',
'core' => \Drupal::CORE_COMPATIBILITY,
'name' => 'Override standard',
'hidden' => TRUE,
];
// File API functions are not available yet.
$path = $this->siteDirectory . '/profiles/standard';
mkdir($path, 0777, TRUE);
file_put_contents("$path/standard.info.yml", Yaml::encode($this->info));
$profiles = ['standard', 'demo_umami'];
foreach ($profiles as $profile) {
$info = [
'type' => 'profile',
'core' => \Drupal::CORE_COMPATIBILITY,
'name' => 'Override ' . $profile,
'hidden' => TRUE,
];
// File API functions are not available yet.
$path = $this->siteDirectory . '/profiles/' . $profile;
mkdir($path, 0777, TRUE);
file_put_contents("$path/$profile.info.yml", Yaml::encode($info));
}
parent::setUp();
}
......
langcode: en
status: true
dependencies:
module:
- system
theme:
- umami
id: breadcrumbs
theme: umami
region: breadcrumbs
weight: 0
provider: null
plugin: system_breadcrumb_block
settings:
id: system_breadcrumb_block
label: Breadcrumbs
provider: system
label_display: '0'
visibility:
request_path:
id: request_path
pages: '<front>'
negate: true
context_mapping: { }
langcode: en
status: true
dependencies:
module:
- help
theme:
- umami
id: help
theme: umami
region: highlighted
weight: 0
provider: null
plugin: help_block
settings:
id: help_block
label: Help
provider: help
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
module:
- system
theme:
- seven
id: seven_breadcrumbs
theme: seven
region: breadcrumb
weight: 0
provider: null
plugin: system_breadcrumb_block
settings:
id: system_breadcrumb_block
label: Breadcrumbs
provider: system
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
module:
- system
theme:
- seven
id: seven_content
theme: seven
region: content
weight: 0
provider: null
plugin: system_main_block
settings:
id: system_main_block
label: 'Main page content'
provider: system
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
module:
- help
theme:
- seven
id: seven_help
theme: seven
region: help
weight: 0
provider: null
plugin: help_block
settings:
id: help_block
label: Help
provider: help
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
theme:
- seven
id: seven_local_actions
theme: seven
region: content
weight: -10
provider: null
plugin: local_actions_block
settings:
id: local_actions_block
label: 'Primary admin actions'
provider: core
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
module:
- user
theme:
- seven
id: seven_login
theme: seven
region: content
weight: 10
provider: null
plugin: user_login_block
settings:
id: user_login_block
label: 'User login'
provider: user
label_display: visible
visibility: { }
langcode: en
status: true
dependencies:
module:
- system
theme:
- seven
id: seven_messages
theme: seven
region: highlighted
weight: 0
provider: null
plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
theme:
- seven
id: seven_page_title
theme: seven
region: header
weight: -30
provider: null
plugin: page_title_block
settings:
id: page_title_block
label: 'Page title'
provider: core
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
theme:
- seven
id: seven_primary_local_tasks
theme: seven
region: header
weight: 0
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: 'Primary tabs'
provider: core
label_display: '0'
primary: true
secondary: false
visibility: { }
langcode: en
status: true
dependencies:
theme:
- seven
id: seven_secondary_local_tasks
theme: seven
region: pre_content
weight: 0
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: 'Secondary tabs'
provider: core
label_display: '0'
primary: false
secondary: true
visibility: { }
langcode: en
status: true
dependencies:
config:
- system.menu.account
module:
- system
theme:
- umami
id: umami_account_menu
theme: umami
region: header
weight: -4
provider: null
plugin: 'system_menu_block:account'
settings:
id: 'system_menu_block:account'
label: 'User account menu'
provider: system
label_display: '0'
level: 1
depth: 1
visibility: { }
langcode: en
status: true
dependencies:
module:
- system
theme:
- umami
id: umami_branding
theme: umami
region: header
weight: -8
provider: null
plugin: system_branding_block
settings:
id: system_branding_block
label: 'Site branding'
provider: system
label_display: '0'
use_site_logo: true
use_site_name: true
use_site_slogan: true
visibility: { }
langcode: en
status: true
dependencies:
module:
- system
theme:
- umami
id: umami_content
theme: umami
region: content
weight: -7
provider: null
plugin: system_main_block
settings:
id: system_main_block
label: 'Main page content'
provider: system
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
config:
- system.menu.footer
module:
- system
theme:
- umami
id: umami_footer
theme: umami
region: footer
weight: 0
provider: null
plugin: 'system_menu_block:footer'
settings:
id: 'system_menu_block:footer'
label: 'Tell us what you think'
provider: system
label_display: '1'
level: 1
depth: 0
visibility: { }
langcode: en
status: true
dependencies:
theme:
- umami
id: umami_local_tasks
theme: umami
region: tabs
weight: -7
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: Tabs
provider: core
label_display: '0'
primary: true
secondary: true
visibility: { }
langcode: en
status: true
dependencies:
config:
- system.menu.main
module:
- system
theme:
- umami
id: umami_main_menu
theme: umami
region: header
weight: -8
provider: null
plugin: 'system_menu_block:main'
settings:
id: 'system_menu_block:main'
label: 'Main navigation'
provider: system
label_display: '0'
level: 1
depth: 1
visibility: { }
langcode: en
status: true
dependencies:
module:
- system
theme:
- umami
id: umami_messages
theme: umami
region: highlighted
weight: -8
provider: null
plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
theme:
- umami
id: umami_page_title
theme: umami
region: page_title
weight: -7
provider: null
plugin: page_title_block
settings:
id: page_title_block
label: 'Page title'
provider: core
label_display: '0'
visibility: { }
langcode: en
status: true
dependencies:
module:
- search
theme:
- umami
id: umami_search
theme: umami
region: header
weight: -6
provider: null
plugin: search_form_block
settings:
id: search_form_block
label: Search
provider: search
label_display: visible
visibility: { }
langcode: en
status: true
dependencies:
config:
- views.view.articles_aside
module:
- node
- views
theme:
- umami
id: views_block__articles_aside_block_1
theme: umami
region: sidebar
weight: -7
provider: null
plugin: 'views_block:articles_aside-block_1'
settings:
id: 'views_block:articles_aside-block_1'
label: ''
provider: views
label_display: visible
views_label: ''
items_per_page: none
visibility:
node_type:
id: node_type
bundles:
article: article
negate: false
context_mapping:
node: '@node.node_route_context:node'
langcode: en
status: true
dependencies:
config:
- views.view.promoted_items
module:
- system
- views
theme:
- umami
id: views_block__promoted_items_block_1
theme: umami
region: banner_top
weight: -6
provider: null
plugin: 'views_block:promoted_items-block_1'
settings:
id: 'views_block:promoted_items-block_1'
label: ''
provider: views
label_display: '0'
views_label: ''
items_per_page: none
visibility:
request_path:
id: request_path
pages: '<front>'
negate: false
context_mapping: { }
langcode: en
status: true
dependencies: { }
id: banner_block
label: 'Banner block'
revision: 0
description: 'A banner block contains a title, summary, link to content and a background image. The background image is scaled to fill the browser''s width.'
langcode: en
status: true
dependencies: { }
id: basic
label: 'Basic block'
revision: 0
description: 'A basic block contains a title and a body.'
langcode: en
status: true
dependencies: { }
id: feedback
label: 'Website feedback'
recipients:
- admin@example.com
reply: ''
weight: 0
message: 'Your message has been sent.'
redirect: ''
langcode: en
status: true
dependencies:
config:
- node.type.page
id: node.page.promote
field_name: promote
entity_type: node
bundle: page
label: 'Promoted to front page'