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.');
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
interval: 10800
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.account
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_account_menu
|
||||
theme: bartik
|
||||
region: secondary_menu
|
||||
weight: 0
|
||||
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: { }
|
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_branding
|
||||
theme: bartik
|
||||
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,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_breadcrumbs
|
||||
theme: bartik
|
||||
region: breadcrumb
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: system_breadcrumb_block
|
||||
settings:
|
||||
id: system_breadcrumb_block
|
||||
label: Breadcrumbs
|
||||
provider: system
|
||||
label_display: '0'
|
||||
visibility: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_content
|
||||
theme: bartik
|
||||
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: { }
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.footer
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_footer
|
||||
theme: bartik
|
||||
region: footer_fifth
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: 'system_menu_block:footer'
|
||||
settings:
|
||||
id: 'system_menu_block:footer'
|
||||
label: 'Footer menu'
|
||||
provider: system
|
||||
label_display: '0'
|
||||
level: 1
|
||||
depth: 0
|
||||
visibility: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- help
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_help
|
||||
theme: bartik
|
||||
region: content
|
||||
weight: -30
|
||||
provider: null
|
||||
plugin: help_block
|
||||
settings:
|
||||
id: help_block
|
||||
label: Help
|
||||
provider: help
|
||||
label_display: '0'
|
||||
visibility: { }
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_local_actions
|
||||
theme: bartik
|
||||
region: content
|
||||
weight: -20
|
||||
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:
|
||||
- bartik
|
||||
id: bartik_local_tasks
|
||||
theme: bartik
|
||||
region: content
|
||||
weight: -40
|
||||
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,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.main
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_main_menu
|
||||
theme: bartik
|
||||
region: primary_menu
|
||||
weight: 0
|
||||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_messages
|
||||
theme: bartik
|
||||
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:
|
||||
- bartik
|
||||
id: bartik_page_title
|
||||
theme: bartik
|
||||
region: content
|
||||
weight: -50
|
||||
provider: null
|
||||
plugin: page_title_block
|
||||
settings:
|
||||
id: page_title_block
|
||||
label: 'Page title'
|
||||
provider: core
|
||||
label_display: '0'
|
||||
visibility: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_powered
|
||||
theme: bartik
|
||||
region: footer_fifth
|
||||
weight: 10
|
||||
provider: null
|
||||
plugin: system_powered_by_block
|
||||
settings:
|
||||
id: system_powered_by_block
|
||||
label: 'Powered by Drupal'
|
||||
provider: system
|
||||
label_display: '0'
|
||||
visibility: { }
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- search
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_search
|
||||
theme: bartik
|
||||
region: sidebar_first
|
||||
weight: -1
|
||||
provider: null
|
||||
plugin: search_form_block
|
||||
settings:
|
||||
id: search_form_block
|
||||
label: Search
|
||||
provider: search
|
||||
label_display: visible
|
||||
visibility: { }
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.tools
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- bartik
|
||||
id: bartik_tools
|
||||
theme: bartik
|
||||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,17 @@
|
|||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,17 @@
|
|||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,19 @@
|
|||
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: { }
|
|
@ -0,0 +1,7 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: basic
|
||||
label: 'Basic block'
|
||||
revision: 0
|
||||
description: 'A basic block contains a title and a body.'
|
|
@ -0,0 +1,7 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: comment
|
||||
label: 'Default comments'
|
||||
target_entity_type_id: node
|
||||
description: 'Allows commenting on content'
|
|
@ -0,0 +1,11 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: feedback
|
||||
label: 'Website feedback'
|
||||
recipients:
|
||||
- admin@example.com
|
||||
reply: ''
|
||||
weight: 0
|
||||
message: 'Your message has been sent.'
|
||||
redirect: ''
|
|
@ -0,0 +1,21 @@
|
|||
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'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value:
|
||||
-
|
||||
value: 0
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
on_label: 'On'
|
||||
off_label: 'Off'
|
||||
field_type: boolean
|
|
@ -0,0 +1,29 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- block_content.type.basic
|
||||
- field.field.block_content.basic.body
|
||||
module:
|
||||
- text
|
||||
id: block_content.basic.default
|
||||
targetEntityType: block_content
|
||||
bundle: basic
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: -4
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
info:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,30 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
- field.field.comment.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment.default
|
||||
targetEntityType: comment
|
||||
bundle: comment
|
||||
mode: default
|
||||
content:
|
||||
author:
|
||||
weight: -2
|
||||
comment_body:
|
||||
type: text_textarea
|
||||
weight: 11
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
subject:
|
||||
type: string_textfield
|
||||
weight: 10
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,83 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.article.body
|
||||
- field.field.node.article.comment
|
||||
- field.field.node.article.field_image
|
||||
- field.field.node.article.field_tags
|
||||
- image.style.thumbnail
|
||||
- node.type.article
|
||||
module:
|
||||
- comment
|
||||
- image
|
||||
- path
|
||||
- text
|
||||
id: node.article.default
|
||||
targetEntityType: node
|
||||
bundle: article
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: 1
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
comment:
|
||||
type: comment_default
|
||||
weight: 20
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_image:
|
||||
type: image_image
|
||||
weight: 4
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
field_tags:
|
||||
type: entity_reference_autocomplete_tags
|
||||
weight: 3
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
promote:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 15
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 16
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: 0
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,60 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.page.body
|
||||
- node.type.page
|
||||
module:
|
||||
- path
|
||||
- text
|
||||
id: node.page.default
|
||||
targetEntityType: node
|
||||
bundle: page
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: 31
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
promote:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 15
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 16
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,30 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.user.user.user_picture
|
||||
- image.style.thumbnail
|
||||
module:
|
||||
- image
|
||||
- user
|
||||
id: user.user.default
|
||||
targetEntityType: user
|
||||
bundle: user
|
||||
mode: default
|
||||
content:
|
||||
account:
|
||||
weight: -10
|
||||
contact:
|
||||
weight: 5
|
||||
language:
|
||||
weight: 0
|
||||
timezone:
|
||||
weight: 6
|
||||
user_picture:
|
||||
type: image_image
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
weight: -1
|
||||
hidden: { }
|
|
@ -0,0 +1,20 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- block_content.type.basic
|
||||
- field.field.block_content.basic.body
|
||||
module:
|
||||
- text
|
||||
id: block_content.basic.default
|
||||
targetEntityType: block_content
|
||||
bundle: basic
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
- field.field.comment.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment.default
|
||||
targetEntityType: comment
|
||||
bundle: comment
|
||||
mode: default
|
||||
content:
|
||||
comment_body:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 100
|
||||
hidden: { }
|
|
@ -0,0 +1,55 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_display.comment.comment.default
|
||||
- field.field.node.article.body
|
||||
- field.field.node.article.comment
|
||||
- field.field.node.article.field_image
|
||||
- field.field.node.article.field_tags
|
||||
- image.style.large
|
||||
- node.type.article
|
||||
module:
|
||||
- comment
|
||||
- image
|
||||
- text
|
||||
- user
|
||||
id: node.article.default
|
||||
targetEntityType: node
|
||||
bundle: article
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
type: text_default
|
||||
weight: 0
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
comment:
|
||||
type: comment_default
|
||||
weight: 110
|
||||
label: above
|
||||
settings:
|
||||
view_mode: default
|
||||
pager_id: 0
|
||||
third_party_settings: { }
|
||||
field_image:
|
||||
type: image
|
||||
weight: -1
|
||||
settings:
|
||||
image_style: large
|
||||
image_link: ''
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
field_tags:
|
||||
type: entity_reference_label
|
||||
weight: 10
|
||||
label: above
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 100
|
||||
hidden:
|
||||
field_image: true
|
||||
field_tags: true
|
|
@ -0,0 +1,24 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.rss
|
||||
- field.field.node.article.body
|
||||
- field.field.node.article.comment
|
||||
- field.field.node.article.field_image
|
||||
- field.field.node.article.field_tags
|
||||
- node.type.article
|
||||
module:
|
||||
- user
|
||||
id: node.article.rss
|
||||
targetEntityType: node
|
||||
bundle: article
|
||||
mode: rss
|
||||
content:
|
||||
links:
|
||||
weight: 100
|
||||
hidden:
|
||||
body: true
|
||||
comment: true
|
||||
field_image: true
|
||||
field_tags: true
|
|
@ -0,0 +1,48 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.teaser
|
||||
- field.field.node.article.body
|
||||
- field.field.node.article.comment
|
||||
- field.field.node.article.field_image
|
||||
- field.field.node.article.field_tags
|
||||
- image.style.medium
|
||||
- node.type.article
|
||||
module:
|
||||
- image
|
||||
- text
|
||||
- user
|
||||
id: node.article.teaser
|
||||
targetEntityType: node
|
||||
bundle: article
|
||||
mode: teaser
|
||||
content:
|
||||
body:
|
||||
type: text_summary_or_trimmed
|
||||
weight: 0
|
||||
settings:
|
||||
trim_length: 600
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
field_image:
|
||||
type: image
|
||||
weight: -1
|
||||
settings:
|
||||
image_style: medium
|
||||
image_link: content
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
field_tags:
|
||||
type: entity_reference_label
|
||||
weight: 10
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
label: above
|
||||
links:
|
||||
weight: 100
|
||||
hidden:
|
||||
comment: true
|
||||
field_image: true
|
||||
field_tags: true
|
|
@ -0,0 +1,23 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.node.page.body
|
||||
- node.type.page
|
||||
module:
|
||||
- text
|
||||
- user
|
||||
id: node.page.default
|
||||
targetEntityType: node
|
||||
bundle: page
|
||||
mode: default
|
||||
content:
|
||||
body:
|
||||
label: hidden
|
||||
type: text_default
|
||||
weight: 100
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 101
|
||||
hidden: { }
|
|
@ -0,0 +1,25 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.teaser
|
||||
- field.field.node.page.body
|
||||
- node.type.page
|
||||
module:
|
||||
- text
|
||||
- user
|
||||
id: node.page.teaser
|
||||
targetEntityType: node
|
||||
bundle: page
|
||||
mode: teaser
|
||||
content:
|
||||
body:
|
||||
label: hidden
|
||||
type: text_summary_or_trimmed
|
||||
weight: 100
|
||||
settings:
|
||||
trim_length: 600
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 101
|
||||
hidden: { }
|
|
@ -0,0 +1,25 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.user.compact
|
||||
- field.field.user.user.user_picture
|
||||
- image.style.thumbnail
|
||||
module:
|
||||
- image
|
||||
- user
|
||||
id: user.user.compact
|
||||
targetEntityType: user
|
||||
bundle: user
|
||||
mode: compact
|
||||
content:
|
||||
user_picture:
|
||||
type: image
|
||||
weight: 0
|
||||
settings:
|
||||
image_style: thumbnail
|
||||
image_link: content
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
hidden:
|
||||
member_for: true
|
|
@ -0,0 +1,25 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.user.user.user_picture
|
||||
- image.style.thumbnail
|
||||
module:
|
||||
- image
|
||||
- user
|
||||
id: user.user.default
|
||||
targetEntityType: user
|
||||
bundle: user
|
||||
mode: default
|
||||
content:
|
||||
member_for:
|
||||
weight: 5
|
||||
user_picture:
|
||||
type: image
|
||||
weight: 0
|
||||
settings:
|
||||
image_style: thumbnail
|
||||
image_link: content
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
hidden: { }
|
|
@ -0,0 +1,52 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- filter.format.basic_html
|
||||
module:
|
||||
- ckeditor
|
||||
format: basic_html
|
||||
editor: ckeditor
|
||||
settings:
|
||||
toolbar:
|
||||
rows:
|
||||
-
|
||||
-
|
||||
name: Formatting
|
||||
items:
|
||||
- Bold
|
||||
- Italic
|
||||
-
|
||||
name: Linking
|
||||
items:
|
||||
- DrupalLink
|
||||
- DrupalUnlink
|
||||
-
|
||||
name: Lists
|
||||
items:
|
||||
- BulletedList
|
||||
- NumberedList
|
||||
-
|
||||
name: Media
|
||||
items:
|
||||
- Blockquote
|
||||
- DrupalImage
|
||||
-
|
||||
name: 'Block Formatting'
|
||||
items:
|
||||
- Format
|
||||
-
|
||||
name: Tools
|
||||
items:
|
||||
- Source
|
||||
plugins:
|
||||
stylescombo:
|
||||
styles: ''
|
||||
image_upload:
|
||||
status: true
|
||||
scheme: public
|
||||
directory: inline-images
|
||||
max_size: ''
|
||||
max_dimensions:
|
||||
width: 0
|
||||
height: 0
|
|
@ -0,0 +1,60 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- filter.format.full_html
|
||||
module:
|
||||
- ckeditor
|
||||
format: full_html
|
||||
editor: ckeditor
|
||||
settings:
|
||||
toolbar:
|
||||
rows:
|
||||
-
|
||||
-
|
||||
name: Formatting
|
||||
items:
|
||||
- Bold
|
||||
- Italic
|
||||
- Strike
|
||||
- Superscript
|
||||
- Subscript
|
||||
- '-'
|
||||
- RemoveFormat
|
||||
-
|
||||
name: Linking
|
||||
items:
|
||||
- DrupalLink
|
||||
- DrupalUnlink
|
||||
-
|
||||
name: Lists
|
||||
items:
|
||||
- BulletedList
|
||||
- NumberedList
|
||||
-
|
||||
name: Media
|
||||
items:
|
||||
- Blockquote
|
||||
- DrupalImage
|
||||
- Table
|
||||
- HorizontalRule
|
||||
-
|
||||
name: 'Block Formatting'
|
||||
items:
|
||||
- Format
|
||||
-
|
||||
name: Tools
|
||||
items:
|
||||
- ShowBlocks
|
||||
- Source
|
||||
plugins:
|
||||
stylescombo:
|
||||
styles: ''
|
||||
image_upload:
|
||||
status: true
|
||||
scheme: public
|
||||
directory: inline-images
|
||||
max_size: ''
|
||||
max_dimensions:
|
||||
width: 0
|
||||
height: 0
|
|
@ -0,0 +1,21 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- block_content.type.basic
|
||||
- field.storage.block_content.body
|
||||
module:
|
||||
- text
|
||||
id: block_content.basic.body
|
||||
field_name: body
|
||||
entity_type: block_content
|
||||
bundle: basic
|
||||
label: Body
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
display_summary: false
|
||||
field_type: text_with_summary
|
|
@ -0,0 +1,20 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
- field.storage.comment.comment_body
|
||||
module:
|
||||
- text
|
||||
id: comment.comment.comment_body
|
||||
field_name: comment_body
|
||||
entity_type: comment
|
||||
bundle: comment
|
||||
label: Comment
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: text_long
|
|
@ -0,0 +1,21 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.body
|
||||
- node.type.article
|
||||
module:
|
||||
- text
|
||||
id: node.article.body
|
||||
field_name: body
|
||||
entity_type: node
|
||||
bundle: article
|
||||
label: Body
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
display_summary: true
|
||||
field_type: text_with_summary
|
|
@ -0,0 +1,32 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.comment
|
||||
- node.type.article
|
||||
module:
|
||||
- comment
|
||||
id: node.article.comment
|
||||
field_name: comment
|
||||
entity_type: node
|
||||
bundle: article
|
||||
label: Comments
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value:
|
||||
-
|
||||
status: 2
|
||||
cid: 0
|
||||
last_comment_name: null
|
||||
last_comment_timestamp: 0
|
||||
last_comment_uid: 0
|
||||
comment_count: 0
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
default_mode: 1
|
||||
per_page: 50
|
||||
form_location: true
|
||||
anonymous: 0
|
||||
preview: 1
|
||||
field_type: comment
|
|
@ -0,0 +1,37 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_image
|
||||
- node.type.article
|
||||
module:
|
||||
- image
|
||||
id: node.article.field_image
|
||||
field_name: field_image
|
||||
entity_type: node
|
||||
bundle: article
|
||||
label: Image
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||
file_extensions: 'png gif jpg jpeg'
|
||||
max_filesize: ''
|
||||
max_resolution: ''
|
||||
min_resolution: ''
|
||||
alt_field: true
|
||||
title_field: false
|
||||
alt_field_required: true
|
||||
title_field_required: false
|
||||
default_image:
|
||||
uuid: null
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: image
|
|
@ -0,0 +1,26 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_tags
|
||||
- node.type.article
|
||||
- taxonomy.vocabulary.tags
|
||||
id: node.article.field_tags
|
||||
field_name: field_tags
|
||||
entity_type: node
|
||||
bundle: article
|
||||
label: Tags
|
||||
description: 'Enter a comma-separated list. For example: Amsterdam, Mexico City, "Cleveland, Ohio"'
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: 'default:taxonomy_term'
|
||||
handler_settings:
|
||||
target_bundles:
|
||||
tags: tags
|
||||
sort:
|
||||
field: _none
|
||||
auto_create: true
|
||||
field_type: entity_reference
|
|
@ -0,0 +1,21 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.body
|
||||
- node.type.page
|
||||
module:
|
||||
- text
|
||||
id: node.page.body
|
||||
field_name: body
|
||||
entity_type: node
|
||||
bundle: page
|
||||
label: Body
|
||||
description: ''
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
display_summary: true
|
||||
field_type: text_with_summary
|
|
@ -0,0 +1,37 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.user.user_picture
|
||||
module:
|
||||
- image
|
||||
- user
|
||||
id: user.user.user_picture
|
||||
field_name: user_picture
|
||||
entity_type: user
|
||||
bundle: user
|
||||
label: Picture
|
||||
description: 'Your virtual face or picture.'
|
||||
required: false
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
file_extensions: 'png gif jpg jpeg'
|
||||
file_directory: 'pictures/[date:custom:Y]-[date:custom:m]'
|
||||
max_filesize: '30 KB'
|
||||
alt_field: false
|
||||
title_field: false
|
||||
max_resolution: 85x85
|
||||
min_resolution: ''
|
||||
default_image:
|
||||
uuid: null
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
alt_field_required: false
|
||||
title_field_required: false
|
||||
handler: 'default:file'
|
||||
handler_settings: { }
|
||||
field_type: image
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
||||
- node
|
||||
id: node.comment
|
||||
field_name: comment
|
||||
entity_type: node
|
||||
type: comment
|
||||
settings:
|
||||
comment_type: comment
|
||||
module: comment
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,31 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- file
|
||||
- image
|
||||
- node
|
||||
id: node.field_image
|
||||
field_name: field_image
|
||||
entity_type: node
|
||||
type: image
|
||||
settings:
|
||||
uri_scheme: public
|
||||
default_image:
|
||||
uuid: null
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
module: image
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes:
|
||||
target_id:
|
||||
- target_id
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
- taxonomy
|
||||
id: node.field_tags
|
||||
field_name: field_tags
|
||||
entity_type: node
|
||||
type: entity_reference
|
||||
settings:
|
||||
target_type: taxonomy_term
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,31 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- file
|
||||
- image
|
||||
- user
|
||||
id: user.user_picture
|
||||
field_name: user_picture
|
||||
entity_type: user
|
||||
type: image
|
||||
settings:
|
||||
uri_scheme: public
|
||||
default_image:
|
||||
uuid: null
|
||||
alt: ''
|
||||
title: ''
|
||||
width: null
|
||||
height: null
|
||||
target_type: file
|
||||
display_field: false
|
||||
display_default: false
|
||||
module: image
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes:
|
||||
target_id:
|
||||
- target_id
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,44 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- editor
|
||||
name: 'Basic HTML'
|
||||
format: basic_html
|
||||
weight: 0
|
||||
roles:
|
||||
- authenticated
|
||||
filters:
|
||||
filter_html:
|
||||
id: filter_html
|
||||
provider: filter
|
||||
status: true
|
||||
weight: -10
|
||||
settings:
|
||||
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption>'
|
||||
filter_html_help: false
|
||||
filter_html_nofollow: false
|
||||
filter_align:
|
||||
id: filter_align
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 7
|
||||
settings: { }
|
||||
filter_caption:
|
||||
id: filter_caption
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 8
|
||||
settings: { }
|
||||
filter_html_image_secure:
|
||||
id: filter_html_image_secure
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 9
|
||||
settings: { }
|
||||
editor_file_reference:
|
||||
id: editor_file_reference
|
||||
provider: editor
|
||||
status: true
|
||||
weight: 11
|
||||
settings: { }
|
|
@ -0,0 +1,35 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- editor
|
||||
name: 'Full HTML'
|
||||
format: full_html
|
||||
weight: 1
|
||||
roles:
|
||||
- administrator
|
||||
filters:
|
||||
filter_align:
|
||||
id: filter_align
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 8
|
||||
settings: { }
|
||||
filter_caption:
|
||||
id: filter_caption
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 9
|
||||
settings: { }
|
||||
filter_htmlcorrector:
|
||||
id: filter_htmlcorrector
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 10
|
||||
settings: { }
|
||||
editor_file_reference:
|
||||
id: editor_file_reference
|
||||
provider: editor
|
||||
status: true
|
||||
weight: 11
|
||||
settings: { }
|
|
@ -0,0 +1,31 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: 'Restricted HTML'
|
||||
format: restricted_html
|
||||
weight: 0
|
||||
roles:
|
||||
- anonymous
|
||||
filters:
|
||||
filter_html:
|
||||
id: filter_html
|
||||
provider: filter
|
||||
status: true
|
||||
weight: -10
|
||||
settings:
|
||||
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>'
|
||||
filter_html_help: true
|
||||
filter_html_nofollow: false
|
||||
filter_autop:
|
||||
id: filter_autop
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 0
|
||||
settings: { }
|
||||
filter_url:
|
||||
id: filter_url
|
||||
provider: filter
|
||||
status: true
|
||||
weight: 0
|
||||
settings:
|
||||
filter_url_length: 72
|
|
@ -0,0 +1,10 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: Article
|
||||
type: article
|
||||
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
|
||||
help: ''
|
||||
new_revision: true
|
||||
preview_mode: 1
|
||||
display_submitted: true
|
10
web/core/profiles/standard/config/install/node.type.page.yml
Normal file
10
web/core/profiles/standard/config/install/node.type.page.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: 'Basic page'
|
||||
type: page
|
||||
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
|
||||
help: ''
|
||||
new_revision: true
|
||||
preview_mode: 1
|
||||
display_submitted: false
|
|
@ -0,0 +1,33 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- comment.type.comment
|
||||
module:
|
||||
- comment
|
||||
id: comment.comment
|
||||
targetEntityType: comment
|
||||
bundle: comment
|
||||
types:
|
||||
- 'schema:Comment'
|
||||
fieldMappings:
|
||||
subject:
|
||||
properties:
|
||||
- 'schema:name'
|
||||
created:
|
||||
properties:
|
||||
- 'schema:dateCreated'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
|
||||
changed:
|
||||
properties:
|
||||
- 'schema:dateModified'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
|
||||
comment_body:
|
||||
properties:
|
||||
- 'schema:text'
|
||||
uid:
|
||||
properties:
|
||||
- 'schema:author'
|
||||
mapping_type: rel
|
|
@ -0,0 +1,49 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- node.type.article
|
||||
module:
|
||||
- node
|
||||
id: node.article
|
||||
targetEntityType: node
|
||||
bundle: article
|
||||
types:
|
||||
- 'schema:Article'
|
||||
fieldMappings:
|
||||
title:
|
||||
properties:
|
||||
- 'schema:name'
|
||||
created:
|
||||
properties:
|
||||
- 'schema:dateCreated'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
|
||||
changed:
|
||||
properties:
|
||||
- 'schema:dateModified'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
|
||||
body:
|
||||
properties:
|
||||
- 'schema:text'
|
||||
uid:
|
||||
properties:
|
||||
- 'schema:author'
|
||||
comment:
|
||||
properties:
|
||||
- 'schema:comment'
|
||||
mapping_type: rel
|
||||
comment_count:
|
||||
properties:
|
||||
- 'schema:interactionCount'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\SchemaOrgDataConverter::interactionCount'
|
||||
arguments:
|
||||
interaction_type: UserComments
|
||||
field_image:
|
||||
properties:
|
||||
- 'schema:image'
|
||||
field_tags:
|
||||
properties:
|
||||
- 'schema:about'
|
|
@ -0,0 +1,40 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- node.type.page
|
||||
module:
|
||||
- node
|
||||
id: node.page
|
||||
targetEntityType: node
|
||||
bundle: page
|
||||
types:
|
||||
- 'schema:WebPage'
|
||||
fieldMappings:
|
||||
title:
|
||||
properties:
|
||||
- 'schema:name'
|
||||
created:
|
||||
properties:
|
||||
- 'schema:dateCreated'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
|
||||
changed:
|
||||
properties:
|
||||
- 'schema:dateModified'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
|
||||
body:
|
||||
properties:
|
||||
- 'schema:text'
|
||||
uid:
|
||||
properties:
|
||||
- 'schema:author'
|
||||
mapping_type: rel
|
||||
comment_count:
|
||||
properties:
|
||||
- 'schema:interactionCount'
|
||||
datatype_callback:
|
||||
callable: 'Drupal\rdf\SchemaOrgDataConverter::interactionCount'
|
||||
arguments:
|
||||
interaction_type: UserComments
|
|
@ -0,0 +1,19 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- taxonomy.vocabulary.tags
|
||||
module:
|
||||
- taxonomy
|
||||
id: taxonomy_term.tags
|
||||
targetEntityType: taxonomy_term
|
||||
bundle: tags
|
||||
types:
|
||||
- 'schema:Thing'
|
||||
fieldMappings:
|
||||
name:
|
||||
properties:
|
||||
- 'schema:name'
|
||||
description:
|
||||
properties:
|
||||
- 'schema:description'
|
|
@ -0,0 +1,3 @@
|
|||
threshold:
|
||||
requirements_warning: 172800
|
||||
requirements_error: 1209600
|
|
@ -0,0 +1,2 @@
|
|||
admin: seven
|
||||
default: bartik
|
|
@ -0,0 +1,8 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
name: Tags
|
||||
vid: tags
|
||||
description: 'Use tags to group articles on similar topics into categories.'
|
||||
hierarchy: 0
|
||||
weight: 0
|
|
@ -0,0 +1,8 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: administrator
|
||||
label: Administrator
|
||||
weight: 2
|
||||
is_admin: true
|
||||
permissions: { }
|
|
@ -0,0 +1,18 @@
|
|||
name: max_1300x1300
|
||||
label: 'Max 1300x1300'
|
||||
effects:
|
||||
04caae9a-fa3e-4ea6-ae09-9c26aec7d308:
|
||||
id: image_scale
|
||||
data:
|
||||
width: 1300
|
||||
height: 1300
|
||||
upscale: false
|
||||
weight: 1
|
||||
uuid: 04caae9a-fa3e-4ea6-ae09-9c26aec7d308
|
||||
langcode: en
|
||||
dependencies:
|
||||
module:
|
||||
- responsive_image
|
||||
enforced:
|
||||
module:
|
||||
- responsive_image
|
|
@ -0,0 +1,18 @@
|
|||
name: max_2600x2600
|
||||
label: 'Max 2600x2600'
|
||||
effects:
|
||||
9b311dd1-0351-45a1-9500-cd069e4670cb:
|
||||
id: image_scale
|
||||
data:
|
||||
width: 2600
|
||||
height: 2600
|
||||
upscale: false
|
||||
weight: 3
|
||||
uuid: 9b311dd1-0351-45a1-9500-cd069e4670cb
|
||||
langcode: en
|
||||
dependencies:
|
||||
module:
|
||||
- responsive_image
|
||||
enforced:
|
||||
module:
|
||||
- responsive_image
|
|
@ -0,0 +1,18 @@
|
|||
name: max_325x325
|
||||
label: 'Max 325x325'
|
||||
effects:
|
||||
cb842cc8-682f-42a6-bd05-5a1ac726f0d8:
|
||||
id: image_scale
|
||||
data:
|
||||
width: 325
|
||||
height: 325
|
||||
upscale: false
|
||||
weight: 1
|
||||
uuid: cb842cc8-682f-42a6-bd05-5a1ac726f0d8
|
||||
langcode: en
|
||||
dependencies:
|
||||
module:
|
||||
- responsive_image
|
||||
enforced:
|
||||
module:
|
||||
- responsive_image
|
|
@ -0,0 +1,18 @@
|
|||
name: max_650x650
|
||||
label: 'Max 650x650'
|
||||
effects:
|
||||
949c201a-77f5-48f6-ba00-be91eb1aad47:
|
||||
id: image_scale
|
||||
data:
|
||||
width: 650
|
||||
height: 650
|
||||
upscale: false
|
||||
weight: 1
|
||||
uuid: 949c201a-77f5-48f6-ba00-be91eb1aad47
|
||||
langcode: en
|
||||
dependencies:
|
||||
module:
|
||||
- responsive_image
|
||||
enforced:
|
||||
module:
|
||||
- responsive_image
|
|
@ -0,0 +1,23 @@
|
|||
uuid: 8eb79e19-da57-4bd3-8304-4e0b5a147276
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- image.style.max_1300x1300
|
||||
- image.style.max_650x650
|
||||
- image.style.max_325x325
|
||||
langcode: en
|
||||
id: narrow
|
||||
label: Narrow
|
||||
image_style_mappings:
|
||||
-
|
||||
breakpoint_id: responsive_image.viewport_sizing
|
||||
multiplier: 1x
|
||||
image_mapping_type: sizes
|
||||
image_mapping:
|
||||
sizes: '(min-width: 1290px) 325px, (min-width: 851px) 25vw, (min-width: 560px) 50vw, 100vw'
|
||||
sizes_image_styles:
|
||||
- max_1300x1300
|
||||
- max_650x650
|
||||
- max_325x325
|
||||
breakpoint_group: responsive_image
|
||||
fallback_image_style: max_325x325
|
|
@ -0,0 +1,25 @@
|
|||
uuid: 5cffd3ef-5656-4446-b200-b771d8076568
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- image.style.max_2600x2600
|
||||
- image.style.max_1300x1300
|
||||
- image.style.max_650x650
|
||||
- image.style.max_325x325
|
||||
langcode: en
|
||||
id: wide
|
||||
label: Wide
|
||||
image_style_mappings:
|
||||
-
|
||||
breakpoint_id: responsive_image.viewport_sizing
|
||||
multiplier: 1x
|
||||
image_mapping_type: sizes
|
||||
image_mapping:
|
||||
sizes: '(min-width: 1290px) 1290px, 100vw'
|
||||
sizes_image_styles:
|
||||
- max_2600x2600
|
||||
- max_1300x1300
|
||||
- max_650x650
|
||||
- max_325x325
|
||||
breakpoint_group: responsive_image
|
||||
fallback_image_style: max_325x325
|
43
web/core/profiles/standard/standard.info.yml
Normal file
43
web/core/profiles/standard/standard.info.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
name: Standard
|
||||
type: profile
|
||||
description: 'Install with commonly used features pre-configured.'
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
dependencies:
|
||||
- node
|
||||
- history
|
||||
- block
|
||||
- breakpoint
|
||||
- ckeditor
|
||||
- color
|
||||
- config
|
||||
- comment
|
||||
- contextual
|
||||
- contact
|
||||
- menu_link_content
|
||||
- datetime
|
||||
- block_content
|
||||
- quickedit
|
||||
- editor
|
||||
- help
|
||||
- image
|
||||
- menu_ui
|
||||
- options
|
||||
- path
|
||||
- page_cache
|
||||
- dynamic_page_cache
|
||||
- taxonomy
|
||||
- dblog
|
||||
- search
|
||||
- shortcut
|
||||
- toolbar
|
||||
- field_ui
|
||||
- file
|
||||
- rdf
|
||||
- views
|
||||
- views_ui
|
||||
- tour
|
||||
- automated_cron
|
||||
themes:
|
||||
- bartik
|
||||
- seven
|
74
web/core/profiles/standard/standard.install
Normal file
74
web/core/profiles/standard/standard.install
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the standard installation profile.
|
||||
*/
|
||||
|
||||
use Drupal\user\Entity\User;
|
||||
use Drupal\user\RoleInterface;
|
||||
use Drupal\shortcut\Entity\Shortcut;
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*
|
||||
* Perform actions to set up the site for this profile.
|
||||
*
|
||||
* @see system_install()
|
||||
*/
|
||||
function standard_install() {
|
||||
// Set front page to "node".
|
||||
\Drupal::configFactory()->getEditable('system.site')->set('page.front', '/node')->save(TRUE);
|
||||
|
||||
// Allow visitor account creation with administrative approval.
|
||||
$user_settings = \Drupal::configFactory()->getEditable('user.settings');
|
||||
$user_settings->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save(TRUE);
|
||||
|
||||
// Enable default permissions for system roles.
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('access comments'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access comments', 'post comments', 'skip comment approval'));
|
||||
|
||||
// Assign user 1 the "administrator" role.
|
||||
$user = User::load(1);
|
||||
$user->roles[] = 'administrator';
|
||||
$user->save();
|
||||
|
||||
// We install some menu links, so we have to rebuild the router, to ensure the
|
||||
// menu links are valid.
|
||||
\Drupal::service('router.builder')->rebuildIfNeeded();
|
||||
|
||||
// Enable the Contact link in the footer menu.
|
||||
/** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */
|
||||
$menu_link_manager = \Drupal::service('plugin.manager.menu.link');
|
||||
$menu_link_manager->updateDefinition('contact.site_page', array('enabled' => TRUE));
|
||||
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('access site-wide contact form'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access site-wide contact form'));
|
||||
|
||||
// Allow authenticated users to use shortcuts.
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access shortcuts'));
|
||||
|
||||
// Populate the default shortcut set.
|
||||
$shortcut = Shortcut::create(array(
|
||||
'shortcut_set' => 'default',
|
||||
'title' => t('Add content'),
|
||||
'weight' => -20,
|
||||
'link' => array('uri' => 'internal:/node/add'),
|
||||
));
|
||||
$shortcut->save();
|
||||
|
||||
$shortcut = Shortcut::create(array(
|
||||
'shortcut_set' => 'default',
|
||||
'title' => t('All content'),
|
||||
'weight' => -19,
|
||||
'link' => array('uri' => 'internal:/admin/content'),
|
||||
));
|
||||
$shortcut->save();
|
||||
|
||||
// Allow all users to use search.
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('search content'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('search content'));
|
||||
|
||||
// Enable the admin theme.
|
||||
\Drupal::configFactory()->getEditable('node.settings')->set('use_admin_theme', TRUE)->save(TRUE);
|
||||
}
|
4
web/core/profiles/standard/standard.links.menu.yml
Normal file
4
web/core/profiles/standard/standard.links.menu.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
standard.front_page:
|
||||
title: 'Home'
|
||||
route_name: '<front>'
|
||||
menu_name: main
|
26
web/core/profiles/standard/standard.profile
Normal file
26
web/core/profiles/standard/standard.profile
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Enables modules and site configuration for a standard site installation.
|
||||
*/
|
||||
|
||||
use Drupal\contact\Entity\ContactForm;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
* Implements hook_form_FORM_ID_alter() for install_configure_form().
|
||||
*
|
||||
* Allows the profile to alter the site configuration form.
|
||||
*/
|
||||
function standard_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {
|
||||
$form['#submit'][] = 'standard_form_install_configure_submit';
|
||||
}
|
||||
|
||||
/**
|
||||
* Submission handler to sync the contact.form.feedback recipient.
|
||||
*/
|
||||
function standard_form_install_configure_submit($form, FormStateInterface $form_state) {
|
||||
$site_mail = $form_state->getValue('site_mail');
|
||||
ContactForm::load('feedback')->setRecipients([$site_mail])->trustData()->save();
|
||||
}
|
202
web/core/profiles/standard/tests/src/Functional/StandardTest.php
Normal file
202
web/core/profiles/standard/tests/src/Functional/StandardTest.php
Normal file
|
@ -0,0 +1,202 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\standard\Functional;
|
||||
|
||||
use Drupal\config\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\contact\Entity\ContactForm;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber;
|
||||
use Drupal\filter\Entity\FilterFormat;
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
use Drupal\user\Entity\Role;
|
||||
|
||||
/**
|
||||
* Tests Standard installation profile expectations.
|
||||
*
|
||||
* @group standard
|
||||
*/
|
||||
class StandardTest extends BrowserTestBase {
|
||||
|
||||
use SchemaCheckTestTrait;
|
||||
|
||||
protected $profile = 'standard';
|
||||
|
||||
/**
|
||||
* The admin user.
|
||||
*
|
||||
* @var \Drupal\user\UserInterface
|
||||
*/
|
||||
protected $adminUser;
|
||||
|
||||
/**
|
||||
* Tests Standard installation profile.
|
||||
*/
|
||||
function testStandard() {
|
||||
$this->drupalGet('');
|
||||
$this->assertLink(t('Contact'));
|
||||
$this->clickLink(t('Contact'));
|
||||
$this->assertResponse(200);
|
||||
|
||||
// Test anonymous user can access 'Main navigation' block.
|
||||
$this->adminUser = $this->drupalCreateUser(array(
|
||||
'administer blocks',
|
||||
'post comments',
|
||||
'skip comment approval',
|
||||
'create article content',
|
||||
'create page content',
|
||||
));
|
||||
$this->drupalLogin($this->adminUser);
|
||||
// Configure the block.
|
||||
$this->drupalGet('admin/structure/block/add/system_menu_block:main/bartik');
|
||||
$this->drupalPostForm(NULL, array(
|
||||
'region' => 'sidebar_first',
|
||||
'id' => 'main_navigation',
|
||||
), t('Save block'));
|
||||
// Verify admin user can see the block.
|
||||
$this->drupalGet('');
|
||||
$this->assertText('Main navigation');
|
||||
|
||||
// Verify we have role = aria on system_powered_by and help_block
|
||||
// blocks.
|
||||
$this->drupalGet('admin/structure/block');
|
||||
$elements = $this->xpath('//div[@role=:role and @id=:id]', array(
|
||||
':role' => 'complementary',
|
||||
':id' => 'block-bartik-help',
|
||||
));
|
||||
|
||||
$this->assertEqual(count($elements), 1, 'Found complementary role on help block.');
|
||||
|
||||
$this->drupalGet('');
|
||||
$elements = $this->xpath('//div[@role=:role and @id=:id]', array(
|
||||
':role' => 'complementary',
|
||||
':id' => 'block-bartik-powered',
|
||||
));
|
||||
$this->assertEqual(count($elements), 1, 'Found complementary role on powered by block.');
|
||||
|
||||
// Verify anonymous user can see the block.
|
||||
$this->drupalLogout();
|
||||
$this->assertText('Main navigation');
|
||||
|
||||
// Ensure comments don't show in the front page RSS feed.
|
||||
// Create an article.
|
||||
$this->drupalCreateNode(array(
|
||||
'type' => 'article',
|
||||
'title' => 'Foobar',
|
||||
'promote' => 1,
|
||||
'status' => 1,
|
||||
'body' => array(array('value' => 'Then she picked out two somebodies,<br />Sally and me', 'format' => 'basic_html')),
|
||||
));
|
||||
|
||||
// Add a comment.
|
||||
$this->drupalLogin($this->adminUser);
|
||||
$this->drupalGet('node/1');
|
||||
$this->assertRaw('Then she picked out two somebodies,<br />Sally and me', 'Found a line break.');
|
||||
$this->drupalPostForm(NULL, array(
|
||||
'subject[0][value]' => 'Barfoo',
|
||||
'comment_body[0][value]' => 'Then she picked out two somebodies, Sally and me',
|
||||
), t('Save'));
|
||||
// Fetch the feed.
|
||||
$this->drupalGet('rss.xml');
|
||||
$this->assertText('Foobar');
|
||||
$this->assertNoText('Then she picked out two somebodies, Sally and me');
|
||||
|
||||
// Ensure block body exists.
|
||||
$this->drupalGet('block/add');
|
||||
$this->assertFieldByName('body[0][value]');
|
||||
|
||||
// Now we have all configuration imported, test all of them for schema
|
||||
// conformance. Ensures all imported default configuration is valid when
|
||||
// standard profile modules are enabled.
|
||||
$names = $this->container->get('config.storage')->listAll();
|
||||
/** @var \Drupal\Core\Config\TypedConfigManagerInterface $typed_config */
|
||||
$typed_config = $this->container->get('config.typed');
|
||||
foreach ($names as $name) {
|
||||
$config = $this->config($name);
|
||||
$this->assertConfigSchema($typed_config, $name, $config->get());
|
||||
}
|
||||
|
||||
// Ensure that configuration from the Standard profile is not reused when
|
||||
// enabling a module again since it contains configuration that can not be
|
||||
// installed. For example, editor.editor.basic_html is editor configuration
|
||||
// that depends on the ckeditor module. The ckeditor module can not be
|
||||
// installed before the editor module since it depends on the editor module.
|
||||
// The installer does not have this limitation since it ensures that all of
|
||||
// the install profiles dependencies are installed before creating the
|
||||
// editor configuration.
|
||||
foreach (FilterFormat::loadMultiple() as $filter) {
|
||||
// Ensure that editor can be uninstalled by removing use in filter
|
||||
// formats. It is necessary to prime the filter collection before removing
|
||||
// the filter.
|
||||
$filter->filters();
|
||||
$filter->removeFilter('editor_file_reference');
|
||||
$filter->save();
|
||||
}
|
||||
\Drupal::service('module_installer')->uninstall(array('editor', 'ckeditor'));
|
||||
$this->rebuildContainer();
|
||||
\Drupal::service('module_installer')->install(array('editor'));
|
||||
/** @var \Drupal\contact\ContactFormInterface $contact_form */
|
||||
$contact_form = ContactForm::load('feedback');
|
||||
$recipients = $contact_form->getRecipients();
|
||||
$this->assertEqual(['simpletest@example.com'], $recipients);
|
||||
|
||||
$role = Role::create([
|
||||
'id' => 'admin_theme',
|
||||
'label' => 'Admin theme',
|
||||
]);
|
||||
$role->grantPermission('view the administration theme');
|
||||
$role->save();
|
||||
$this->adminUser->addRole($role->id());
|
||||
$this->adminUser->save();
|
||||
$this->drupalGet('node/add');
|
||||
$this->assertResponse(200);
|
||||
|
||||
// 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.');
|
||||
|
||||
// Make sure the optional image styles are not installed.
|
||||
$this->drupalGet('admin/config/media/image-styles');
|
||||
$this->assertNoText('Max 325x325');
|
||||
$this->assertNoText('Max 650x650');
|
||||
$this->assertNoText('Max 1300x1300');
|
||||
$this->assertNoText('Max 2600x2600');
|
||||
|
||||
// Make sure the optional image styles are installed after enabling
|
||||
// the responsive_image module.
|
||||
\Drupal::service('module_installer')->install(array('responsive_image'));
|
||||
$this->rebuildContainer();
|
||||
$this->drupalGet('admin/config/media/image-styles');
|
||||
$this->assertText('Max 325x325');
|
||||
$this->assertText('Max 650x650');
|
||||
$this->assertText('Max 1300x1300');
|
||||
$this->assertText('Max 2600x2600');
|
||||
|
||||
// Verify certain routes' responses are cacheable by Dynamic Page Cache, to
|
||||
// ensure these responses are very fast for authenticated users.
|
||||
$this->dumpHeaders = TRUE;
|
||||
$this->drupalLogin($this->adminUser);
|
||||
$url = Url::fromRoute('contact.site_page');
|
||||
$this->drupalGet($url);
|
||||
$this->assertEqual('UNCACHEABLE', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Site-wide contact page cannot be cached by Dynamic Page Cache.');
|
||||
|
||||
$url = Url::fromRoute('<front>');
|
||||
$this->drupalGet($url);
|
||||
$this->drupalGet($url);
|
||||
$this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Frontpage is cached by Dynamic Page Cache.');
|
||||
|
||||
$url = Url::fromRoute('entity.node.canonical', ['node' => 1]);
|
||||
$this->drupalGet($url);
|
||||
$this->drupalGet($url);
|
||||
$this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Full node page is cached by Dynamic Page Cache.');
|
||||
|
||||
$url = Url::fromRoute('entity.user.canonical', ['user' => 1]);
|
||||
$this->drupalGet($url);
|
||||
$this->drupalGet($url);
|
||||
$this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'User profile page is cached by Dynamic Page Cache.');
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
# @todo: Remove this file in https://www.drupal.org/node/2352949
|
||||
default: classy
|
|
@ -0,0 +1,12 @@
|
|||
cache_strings: true
|
||||
javascript:
|
||||
directory: languages
|
||||
translation:
|
||||
use_source: remote_and_local
|
||||
default_filename: '%project-%version.%language.po'
|
||||
default_server_pattern: 'http://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po'
|
||||
overwrite_customized: false
|
||||
overwrite_not_customized: true
|
||||
update_interval_days: 0
|
||||
path: ''
|
||||
import_enabled: false
|
|
@ -0,0 +1,6 @@
|
|||
name: 'Drupal system listing compatible test'
|
||||
type: module
|
||||
description: 'Support module for testing the drupal_system_listing function.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
core: 8.x
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\drupal_system_listing_compatible_test\Tests;
|
||||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Verifies that tests in installation profile modules are found and may use
|
||||
* another profile for running tests.
|
||||
*
|
||||
* @group drupal_system_listing_compatible_test
|
||||
*/
|
||||
class SystemListingCompatibleTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
* Attempt to enable a module from the Testing profile.
|
||||
*
|
||||
* This test uses the Minimal profile, but enables a module from the Testing
|
||||
* profile to confirm that a different profile can be used for running tests.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = array('drupal_system_listing_compatible_test');
|
||||
|
||||
/**
|
||||
* Use the Minimal profile.
|
||||
*
|
||||
* This test needs to use a different installation profile than the test which
|
||||
* asserts that this test is found.
|
||||
*
|
||||
* @see SimpleTestInstallationProfileModuleTestsTestCase
|
||||
*/
|
||||
protected $profile = 'minimal';
|
||||
|
||||
/**
|
||||
* Non-empty test* method required to executed the test case class.
|
||||
*/
|
||||
function testSystemListing() {
|
||||
$this->pass(__CLASS__ . ' test executed.');
|
||||
}
|
||||
|
||||
}
|
14
web/core/profiles/testing/testing.info.yml
Normal file
14
web/core/profiles/testing/testing.info.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: Testing
|
||||
type: profile
|
||||
description: 'Minimal profile for running tests. Includes absolutely required modules only.'
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
hidden: true
|
||||
dependencies:
|
||||
# Enable page_cache and dynamic_page_cache in testing, to ensure that as many
|
||||
# tests as possible run with them enabled.
|
||||
- page_cache
|
||||
- dynamic_page_cache
|
||||
# @todo: Remove this in https://www.drupal.org/node/2352949
|
||||
themes:
|
||||
- classy
|
|
@ -0,0 +1,10 @@
|
|||
name: 'Testing config import'
|
||||
type: profile
|
||||
description: 'Tests install profiles in the config importer.'
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
hidden: true
|
||||
dependencies:
|
||||
- syslog
|
||||
themes:
|
||||
- stark
|
|
@ -0,0 +1,9 @@
|
|||
id: user_block_user_action
|
||||
label: 'Overridden block the selected user(s)'
|
||||
status: true
|
||||
langcode: en
|
||||
type: user
|
||||
plugin: user_block_user_action
|
||||
dependencies:
|
||||
module:
|
||||
- user
|
|
@ -0,0 +1,3 @@
|
|||
threshold:
|
||||
requirements_warning: 259200
|
||||
requirements_error: 1209600
|
|
@ -0,0 +1,13 @@
|
|||
id: language
|
||||
module: language
|
||||
label: Language
|
||||
langcode: en
|
||||
routes:
|
||||
- route_name: entity.configurable_language.collection
|
||||
tips:
|
||||
language-overview:
|
||||
id: language-overview
|
||||
plugin: text
|
||||
label: Languages
|
||||
body: '<p>The "Languages" page allows you to add, edit, delete, and reorder languages for the site.</p>'
|
||||
weight: 1
|
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue