Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.admin
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- stark
|
||||
id: stark_admin
|
||||
theme: stark
|
||||
region: sidebar_first
|
||||
weight: 1
|
||||
provider: null
|
||||
plugin: 'system_menu_block:admin'
|
||||
settings:
|
||||
id: 'system_menu_block:admin'
|
||||
label: Administration
|
||||
provider: system
|
||||
label_display: visible
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility: { }
|
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- stark
|
||||
id: stark_branding
|
||||
theme: stark
|
||||
region: header
|
||||
weight: 0
|
||||
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: { }
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
theme:
|
||||
- stark
|
||||
id: stark_local_actions
|
||||
theme: stark
|
||||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
theme:
|
||||
- stark
|
||||
id: stark_local_tasks
|
||||
theme: stark
|
||||
region: content
|
||||
weight: -20
|
||||
provider: null
|
||||
plugin: local_tasks_block
|
||||
settings:
|
||||
id: local_tasks_block
|
||||
label: Tabs
|
||||
provider: core
|
||||
label_display: '0'
|
||||
primary: true
|
||||
secondary: true
|
||||
visibility: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- user
|
||||
theme:
|
||||
- stark
|
||||
id: stark_login
|
||||
theme: stark
|
||||
region: sidebar_first
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: user_login_block
|
||||
settings:
|
||||
id: user_login_block
|
||||
label: 'User login'
|
||||
provider: user
|
||||
label_display: visible
|
||||
visibility: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- stark
|
||||
id: stark_messages
|
||||
theme: stark
|
||||
region: highlighted
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: system_messages_block
|
||||
settings:
|
||||
id: system_messages_block
|
||||
label: 'Status messages'
|
||||
provider: system
|
||||
label_display: '0'
|
||||
visibility: { }
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
theme:
|
||||
- stark
|
||||
id: stark_page_title
|
||||
theme: stark
|
||||
region: content
|
||||
weight: -30
|
||||
provider: null
|
||||
plugin: page_title_block
|
||||
settings:
|
||||
id: page_title_block
|
||||
label: 'Page title'
|
||||
provider: core
|
||||
label_display: '0'
|
||||
visibility: { }
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.tools
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- stark
|
||||
id: stark_tools
|
||||
theme: stark
|
||||
region: sidebar_first
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: 'system_menu_block:tools'
|
||||
settings:
|
||||
id: 'system_menu_block:tools'
|
||||
label: Tools
|
||||
provider: system
|
||||
label_display: visible
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility: { }
|
13
web/core/profiles/minimal/minimal.info.yml
Normal file
13
web/core/profiles/minimal/minimal.info.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
name: Minimal
|
||||
type: profile
|
||||
description: 'Build a custom site without pre-configured functionality. Suitable for advanced users.'
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
dependencies:
|
||||
- node
|
||||
- block
|
||||
- dblog
|
||||
- page_cache
|
||||
- dynamic_page_cache
|
||||
themes:
|
||||
- stark
|
21
web/core/profiles/minimal/minimal.install
Normal file
21
web/core/profiles/minimal/minimal.install
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the minimal installation profile.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*
|
||||
* Performs actions to set up the site for this profile.
|
||||
*
|
||||
* @see system_install()
|
||||
*/
|
||||
function minimal_install() {
|
||||
// Disable the user pictures on nodes.
|
||||
\Drupal::configFactory()->getEditable('system.theme.global')->set('features.node_user_picture', FALSE)->save(TRUE);
|
||||
|
||||
// Allow visitor account creation, but with administrative approval.
|
||||
\Drupal::configFactory()->getEditable('user.settings')->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save(TRUE);
|
||||
}
|
42
web/core/profiles/minimal/src/Tests/MinimalTest.php
Normal file
42
web/core/profiles/minimal/src/Tests/MinimalTest.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\minimal\Tests;
|
||||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests Minimal installation profile expectations.
|
||||
*
|
||||
* @group minimal
|
||||
*/
|
||||
class MinimalTest extends WebTestBase {
|
||||
|
||||
protected $profile = 'minimal';
|
||||
|
||||
/**
|
||||
* Tests Minimal installation profile.
|
||||
*/
|
||||
function testMinimal() {
|
||||
$this->drupalGet('');
|
||||
// Check the login block is present.
|
||||
$this->assertLink(t('Create new account'));
|
||||
$this->assertResponse(200);
|
||||
|
||||
// Create a user to test tools and navigation blocks for logged in users
|
||||
// with appropriate permissions.
|
||||
$user = $this->drupalCreateUser(array('access administration pages', 'administer content types'));
|
||||
$this->drupalLogin($user);
|
||||
$this->drupalGet('');
|
||||
$this->assertText(t('Tools'));
|
||||
$this->assertText(t('Administration'));
|
||||
|
||||
// Ensure that there are no pending updates after installation.
|
||||
$this->drupalLogin($this->rootUser);
|
||||
$this->drupalGet('update.php/selection');
|
||||
$this->assertText('No pending updates.');
|
||||
|
||||
// Ensure that there are no pending entity updates after installation.
|
||||
$this->assertFalse($this->container->get('entity.definition_update_manager')->needsUpdates(), 'After installation, entity schema is up to date.');
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue