Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176

This commit is contained in:
Pantheon Automation 2015-08-17 17:00:26 -07:00 committed by Greg Anderson
commit 9921556621
13277 changed files with 1459781 additions and 0 deletions

View file

@ -0,0 +1,21 @@
id: stark_admin
theme: stark
weight: 1
status: true
langcode: en
region: sidebar_first
plugin: 'system_menu_block:admin'
settings:
label: Administration
provider: system
label_display: visible
level: 1
depth: 0
dependencies:
config:
- system.menu.admin
module:
- system
theme:
- stark
visibility: { }

View file

@ -0,0 +1,17 @@
id: stark_login
theme: stark
weight: 0
status: true
langcode: en
region: sidebar_first
plugin: user_login_block
settings:
label: 'User login'
provider: user
label_display: visible
dependencies:
module:
- user
theme:
- stark
visibility: { }

View file

@ -0,0 +1,17 @@
id: stark_messages
theme: stark
weight: 0
status: true
langcode: en
region: highlighted
plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- stark

View file

@ -0,0 +1,21 @@
id: stark_tools
theme: stark
weight: 0
status: true
langcode: en
region: sidebar_first
plugin: 'system_menu_block:tools'
settings:
label: Tools
provider: system
label_display: visible
level: 1
depth: 0
dependencies:
config:
- system.menu.tools
module:
- system
theme:
- stark
visibility: { }

View file

@ -0,0 +1,12 @@
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
themes:
- stark

View file

@ -0,0 +1,20 @@
<?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);
}

View file

@ -0,0 +1,38 @@
<?php
/**
* @file
* Contains \Drupal\minimal\Tests\MinimalTest.
*/
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'));
}
}

View file

@ -0,0 +1,22 @@
id: bartik_account_menu
theme: bartik
weight: 0
status: true
langcode: en
region: secondary_menu
plugin: 'system_menu_block:account'
settings:
id: 'system_menu_block:account'
label: 'User account menu'
provider: system
label_display: '0'
level: 1
depth: 1
dependencies:
config:
- system.menu.account
module:
- system
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,18 @@
id: bartik_breadcrumbs
theme: bartik
weight: 0
status: true
langcode: en
region: breadcrumb
plugin: system_breadcrumb_block
settings:
id: system_breadcrumb_block
label: Breadcrumbs
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,18 @@
id: bartik_content
theme: bartik
weight: 0
status: true
langcode: en
region: content
plugin: system_main_block
settings:
id: system_main_block
label: 'Main page content'
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,22 @@
id: bartik_footer
theme: bartik
weight: 0
status: true
langcode: en
region: footer_fifth
plugin: 'system_menu_block:footer'
settings:
id: 'system_menu_block:footer'
label: 'Footer menu'
provider: system
label_display: '0'
level: 1
depth: 0
dependencies:
config:
- system.menu.footer
module:
- system
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,18 @@
id: bartik_help
theme: bartik
weight: 0
status: true
langcode: en
region: help
plugin: help_block
settings:
id: help_block
label: 'Help'
provider: help
label_display: '0'
dependencies:
module:
- help
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,18 @@
id: bartik_login
theme: bartik
weight: 0
status: true
langcode: en
region: sidebar_first
plugin: user_login_block
settings:
id: user_login_block
label: 'User login'
provider: user
label_display: visible
dependencies:
module:
- user
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,22 @@
id: bartik_main_menu
theme: bartik
weight: 0
status: true
langcode: en
region: primary_menu
plugin: 'system_menu_block:main'
settings:
id: 'system_menu_block:main'
label: 'Main navigation'
provider: system
label_display: '0'
level: 1
depth: 1
dependencies:
config:
- system.menu.main
module:
- system
theme:
- bartik
visibility: {}

View file

@ -0,0 +1,17 @@
id: bartik_messages
theme: bartik
weight: 0
status: true
langcode: en
region: highlighted
plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- bartik

View file

@ -0,0 +1,18 @@
id: bartik_powered
theme: bartik
weight: 10
status: true
langcode: en
region: footer_fifth
plugin: system_powered_by_block
settings:
id: system_powered_by_block
label: 'Powered by Drupal'
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,18 @@
id: bartik_search
theme: bartik
weight: -1
status: true
langcode: en
region: sidebar_first
plugin: search_form_block
settings:
id: search_form_block
label: Search
provider: search
label_display: visible
dependencies:
module:
- search
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,22 @@
id: bartik_tools
theme: bartik
weight: 0
status: true
langcode: en
region: sidebar_first
plugin: 'system_menu_block:tools'
settings:
id: 'system_menu_block:tools'
label: Tools
provider: system
label_display: visible
level: 1
depth: 0
dependencies:
config:
- system.menu.tools
module:
- system
theme:
- bartik
visibility: { }

View file

@ -0,0 +1,18 @@
id: seven_breadcrumbs
theme: seven
weight: 0
status: true
langcode: en
region: breadcrumb
plugin: system_breadcrumb_block
settings:
id: system_breadcrumb_block
label: Breadcrumbs
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- seven
visibility: { }

View file

@ -0,0 +1,18 @@
id: seven_content
theme: seven
weight: 0
status: true
langcode: en
region: content
plugin: system_main_block
settings:
id: system_main_block
label: 'Main page content'
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- seven
visibility: { }

View file

@ -0,0 +1,18 @@
id: seven_help
theme: seven
weight: 0
status: true
langcode: en
region: help
plugin: help_block
settings:
id: help_block
label: 'Help'
provider: help
label_display: '0'
dependencies:
module:
- help
theme:
- seven
visibility: { }

View file

@ -0,0 +1,18 @@
id: seven_login
theme: seven
weight: 10
status: true
langcode: en
region: content
plugin: user_login_block
settings:
id: user_login_block
label: 'User login'
provider: user
label_display: visible
dependencies:
module:
- user
theme:
- seven
visibility: { }

View file

@ -0,0 +1,17 @@
id: seven_messages
theme: seven
weight: 0
status: true
langcode: en
region: highlighted
plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
dependencies:
module:
- system
theme:
- seven

View file

@ -0,0 +1,5 @@
id: basic
label: 'Basic block'
revision: 0
description: 'A basic block contains a title and a body.'
langcode: en

View file

@ -0,0 +1,6 @@
id: comment
label: 'Default comments'
description: 'Allows commenting on content'
target_entity_type_id: node
status: true
langcode: en

View file

@ -0,0 +1,7 @@
id: feedback
label: 'Website feedback'
recipients: { }
reply: ''
weight: 0
status: true
langcode: en

View file

@ -0,0 +1,20 @@
# Changes the default value of the promote base field on the page node type.
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: true
default_value:
-
value: 0
default_value_callback: ''
settings: { }
field_type: boolean

View file

@ -0,0 +1,30 @@
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:
info:
type: string_textfield
weight: -5
settings:
size: 60
placeholder: ''
third_party_settings: { }
body:
type: text_textarea_with_summary
weight: -4
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
hidden: { }
third_party_settings: { }

View file

@ -0,0 +1,31 @@
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
subject:
type: string_textfield
weight: 10
settings:
size: 60
placeholder: ''
third_party_settings: { }
comment_body:
type: text_textarea
weight: 11
settings:
rows: 5
placeholder: ''
third_party_settings: { }
hidden: { }
third_party_settings: { }

View file

@ -0,0 +1,85 @@
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
- node.type.article
module:
- comment
- entity_reference
- image
- path
- taxonomy
- text
id: node.article.default
targetEntityType: node
bundle: article
mode: default
content:
title:
type: string_textfield
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
body:
type: text_textarea_with_summary
weight: 1
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete_tags
weight: 3
settings: { }
third_party_settings: { }
field_image:
type: image_image
weight: 4
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
created:
type: datetime_timestamp
weight: 10
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: { }
comment:
type: comment_default
weight: 20
settings: { }
third_party_settings: { }
path:
type: path
weight: 30
settings: { }
third_party_settings: { }
hidden: { }
third_party_settings: { }

View file

@ -0,0 +1,62 @@
langcode: en
status: true
dependencies:
config:
- field.field.node.page.body
- node.type.page
module:
- entity_reference
- path
- text
id: node.page.default
targetEntityType: node
bundle: page
mode: default
content:
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: { }
created:
type: datetime_timestamp
weight: 10
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: { }
path:
type: path
weight: 30
settings: { }
third_party_settings: { }
body:
type: text_textarea_with_summary
weight: 31
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
hidden: { }
third_party_settings: { }

View file

@ -0,0 +1,17 @@
id: user.user.default
targetEntityType: user
bundle: user
mode: default
content:
user_picture:
type: image_image
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
weight: -1
status: true
dependencies:
module:
- image
- user

View file

@ -0,0 +1,21 @@
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: { }
third_party_settings: { }

View file

@ -0,0 +1,23 @@
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: { }
third_party_settings: { }

View file

@ -0,0 +1,55 @@
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
- node.type.article
module:
- comment
- image
- taxonomy
- text
- user
id: node.article.default
targetEntityType: node
bundle: article
mode: default
content:
field_image:
type: image
weight: -1
settings:
image_style: large
image_link: ''
third_party_settings: { }
label: hidden
body:
type: text_default
weight: 0
settings: { }
third_party_settings: { }
label: hidden
field_tags:
type: entity_reference_label
weight: 10
label: above
settings:
link: true
third_party_settings: { }
comment:
label: above
type: comment_default
weight: 20
settings:
pager_id: 0
third_party_settings: { }
links:
weight: 100
hidden:
langcode: true
field_image: true
field_tags: true
third_party_settings: { }

View file

@ -0,0 +1,26 @@
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:
langcode: true
body: true
comment: true
field_image: true
field_tags: true
third_party_settings: { }

View file

@ -0,0 +1,50 @@
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
- node.type.article
module:
- image
- taxonomy
- text
- user
id: node.article.teaser
targetEntityType: node
bundle: article
mode: teaser
content:
field_image:
type: image
weight: -1
settings:
image_style: medium
image_link: content
third_party_settings: { }
label: hidden
body:
type: text_summary_or_trimmed
weight: 0
settings:
trim_length: 600
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:
langcode: true
field_image: true
field_tags: true
comment: true
third_party_settings: { }

View file

@ -0,0 +1,25 @@
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:
langcode: true
third_party_settings: { }

View file

@ -0,0 +1,27 @@
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:
langcode: true
third_party_settings: { }

View file

@ -0,0 +1,22 @@
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
status: true
dependencies:
config:
- core.entity_view_mode.user.compact
module:
- image
- user

View file

@ -0,0 +1,18 @@
id: user.user.default
targetEntityType: user
bundle: user
mode: default
content:
user_picture:
type: image
weight: 0
settings:
image_style: thumbnail
image_link: content
third_party_settings: { }
label: hidden
status: true
dependencies:
module:
- image
- user

View file

@ -0,0 +1,48 @@
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: Tools
items:
- Source
plugins:
stylescombo:
styles: ''
image_upload:
status: true
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: 0
height: 0
status: true
langcode: en
dependencies:
config:
- filter.format.basic_html
module:
- ckeditor

View file

@ -0,0 +1,60 @@
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
status: true
langcode: en
dependencies:
config:
- filter.format.full_html
module:
- ckeditor

View file

@ -0,0 +1,22 @@
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
third_party_settings: { }
field_type: text_with_summary

View file

@ -0,0 +1,21 @@
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: { }
third_party_settings: { }
field_type: text_long

View file

@ -0,0 +1,22 @@
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
third_party_settings: { }
field_type: text_with_summary

View file

@ -0,0 +1,33 @@
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
third_party_settings: { }
field_type: comment

View file

@ -0,0 +1,32 @@
id: node.article.field_image
entity_type: node
bundle: article
field_name: field_image
label: Image
description: ''
required: false
default_value: { }
default_value_callback: ''
settings:
file_directory: field/image
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
status: true
langcode: en
field_type: image
dependencies:
config:
- field.storage.node.field_image
- node.type.article

View file

@ -0,0 +1,26 @@
id: node.article.field_tags
entity_type: node
bundle: article
field_name: field_tags
field_type: entity_reference
label: Tags
description: 'Enter a comma-separated list. For example: Amsterdam, Mexico City, "Cleveland, Ohio"'
required: false
default_value: { }
default_value_callback: ''
settings:
handler: default
handler_settings:
target_bundles:
tags: tags
sort:
field: _none
auto_create: true
status: true
langcode: en
dependencies:
config:
- field.storage.node.field_tags
- node.type.article
module:
- entity_reference

View file

@ -0,0 +1,22 @@
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
third_party_settings: { }
field_type: text_with_summary

View file

@ -0,0 +1,31 @@
id: user.user.user_picture
status: true
langcode: en
entity_type: user
bundle: user
field_name: user_picture
label: Picture
description: 'Your virtual face or picture.'
required: false
default_value: { }
default_value_callback: ''
settings:
file_extensions: 'png gif jpg jpeg'
file_directory: pictures
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
field_type: image
dependencies:
config:
- field.storage.user.user_picture

View file

@ -0,0 +1,18 @@
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

View file

@ -0,0 +1,26 @@
id: node.field_image
field_name: field_image
entity_type: node
type: image
module: image
settings:
uri_scheme: public
default_image:
uuid: null
alt: ''
title: ''
width: null
height: null
locked: false
cardinality: 1
translatable: true
indexes:
target_id:
- target_id
status: true
langcode: en
dependencies:
module:
- node
- image
persist_with_no_fields: false

View file

@ -0,0 +1,17 @@
id: node.field_tags
field_name: field_tags
entity_type: node
type: entity_reference
module: taxonomy
settings:
target_type: taxonomy_term
locked: false
cardinality: -1
translatable: true
status: true
langcode: en
dependencies:
module:
- node
- taxonomy
persist_with_no_fields: false

View file

@ -0,0 +1,25 @@
id: user.user_picture
status: true
langcode: en
field_name: user_picture
entity_type: user
type: image
settings:
uri_scheme: public
default_image:
uuid: null
alt: ''
title: ''
width: null
height: null
module: image
locked: false
cardinality: 1
indexes:
target_id:
- target_id
dependencies:
module:
- image
- user
persist_with_no_fields: false

View file

@ -0,0 +1,50 @@
format: basic_html
name: 'Basic HTML'
status: true
weight: 0
roles:
- authenticated
filters:
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h4> <h5> <h6> <p> <br> <span> <img>'
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: { }
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: { }
langcode: en
dependencies:
module:
- editor

View file

@ -0,0 +1,35 @@
format: full_html
name: 'Full HTML'
status: true
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: { }
langcode: en
dependencies:
module:
- editor

View file

@ -0,0 +1,36 @@
format: restricted_html
name: 'Restricted HTML'
status: true
weight: 0
roles:
- anonymous
filters:
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h4> <h5> <h6>'
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
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: 10
settings: { }
langcode: en

View file

@ -0,0 +1,9 @@
type: article
name: Article
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
help: ''
new_revision: false
preview_mode: 1
display_submitted: true
status: true
langcode: en

View file

@ -0,0 +1,9 @@
type: page
name: 'Basic page'
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
help: ''
new_revision: false
preview_mode: 1
display_submitted: false
status: true
langcode: en

View file

@ -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

View file

@ -0,0 +1,47 @@
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'
dependencies:
config:
- node.type.article
module:
- node

View file

@ -0,0 +1,38 @@
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'
dependencies:
config:
- node.type.page
module:
- node

View file

@ -0,0 +1,17 @@
id: taxonomy_term.tags
targetEntityType: taxonomy_term
bundle: tags
types:
- 'schema:Thing'
fieldMappings:
name:
properties:
- 'schema:name'
description:
properties:
- 'schema:description'
dependencies:
config:
- taxonomy.vocabulary.tags
module:
- taxonomy

View file

@ -0,0 +1,4 @@
threshold:
autorun: 10800
requirements_warning: 172800
requirements_error: 1209600

View file

@ -0,0 +1,2 @@
admin: seven
default: bartik

View file

@ -0,0 +1,7 @@
vid: tags
name: Tags
description: 'Use tags to group articles on similar topics into categories.'
hierarchy: 0
weight: 0
status: true
langcode: en

View file

@ -0,0 +1,5 @@
id: administrator
label: Administrator
weight: 2
langcode: en
is_admin: true

View file

@ -0,0 +1,157 @@
<?php
/**
* @file
* Contains \Drupal\standard\Tests\StandardTest.
*/
namespace Drupal\standard\Tests;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\contact\Entity\ContactForm;
use Drupal\filter\Entity\FilterFormat;
use Drupal\simpletest\WebTestBase;
use Drupal\user\Entity\Role;
/**
* Tests Standard installation profile expectations.
*
* @group standard
*/
class StandardTest extends WebTestBase {
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);
}
}

View file

@ -0,0 +1,42 @@
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
- entity_reference
- help
- image
- menu_ui
- options
- path
- page_cache
- taxonomy
- dblog
- search
- shortcut
- toolbar
- field_ui
- file
- rdf
- views
- views_ui
- tour
themes:
- bartik
- seven

View file

@ -0,0 +1,71 @@
<?php
/**
* @file
* Install, update and uninstall functions for the standard installation profile.
*/
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\user\Entity\User;
use Drupal\user\RoleInterface;
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*
* @see system_install()
*/
function standard_install() {
// Now that all modules are installed, make sure the entity storage and other
// handlers are up to date with the current entity and field definitions. For
// example, Path module adds a base field to nodes and taxonomy terms after
// those modules are already installed.
\Drupal::service('entity.definition_update_manager')->applyUpdates();
// 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();
// 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 = entity_create('shortcut', array(
'shortcut_set' => 'default',
'title' => t('Add content'),
'weight' => -20,
'link' => array('uri' => 'internal:/node/add'),
));
$shortcut->save();
$shortcut = entity_create('shortcut', array(
'shortcut_set' => 'default',
'title' => t('All content'),
'weight' => -19,
'link' => array('uri' => 'internal:/admin/content'),
));
$shortcut->save();
// Enable the admin theme.
\Drupal::configFactory()->getEditable('node.settings')->set('use_admin_theme', TRUE)->save(TRUE);
}

View file

@ -0,0 +1,4 @@
standard.front_page:
title: 'Home'
route_name: '<front>'
menu_name: main

View file

@ -0,0 +1,27 @@
<?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) {
// Add a placeholder as example that one can choose an arbitrary site name.
$form['site_information']['site_name']['#attributes']['placeholder'] = t('My site');
$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();
}

View file

@ -0,0 +1,2 @@
# @todo: Remove this file in https://www.drupal.org/node/2352949
default: classy

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,46 @@
<?php
/**
* @file
* Contains \Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest.
*/
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.');
}
}

View file

@ -0,0 +1,13 @@
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 in testing, to ensure that as many tests as possible run
# with page caching enabled.
- page_cache
# @todo: Remove this in https://www.drupal.org/node/2352949
themes:
- classy

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,4 @@
threshold:
autorun: 0
requirements_warning: 259200
requirements_error: 1209600

View file

@ -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

View file

@ -0,0 +1,6 @@
id: dotted.default
label: 'Default install profile override'
weight: 0
protected_property: Default
# Intentionally commented out to verify default status behavior.
# status: 1

View file

@ -0,0 +1,8 @@
id: override
label: Override
weight: 0
protected_property: Default
status: true
dependencies:
module:
- tour

View file

@ -0,0 +1,8 @@
id: override_unmet
label: Override
weight: 0
protected_property: Default
status: true
dependencies:
module:
- dblog

View file

@ -0,0 +1,13 @@
id: testing_config_overrides
module: testing_config_overrides
label: Config override test
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

View file

@ -0,0 +1,10 @@
name: Testing config overrides
type: profile
description: 'Minimal profile for running tests with config overrides in a profile.'
version: VERSION
core: 8.x
hidden: true
dependencies:
- action
- language
- tour

View file

@ -0,0 +1,7 @@
id: de
label: German
direction: 'ltr'
weight: 0
locked: false
status: true
langcode: en

View file

@ -0,0 +1,7 @@
id: es
label: Spanish
direction: 'ltr'
weight: 0
locked: false
status: true
langcode: en

View file

@ -0,0 +1,9 @@
name: Testing multilingual
type: profile
description: 'Minimal profile for running tests with a multilingual installer.'
version: VERSION
core: 8.x
hidden: true
dependencies:
- locale
- tour

View file

@ -0,0 +1,7 @@
id: de
label: German
direction: 'ltr'
weight: 0
locked: false
status: true
langcode: en

View file

@ -0,0 +1,7 @@
id: es
label: Spanish
direction: 'ltr'
weight: 0
locked: false
status: true
langcode: en

View file

@ -0,0 +1,9 @@
name: 'Testing multilingual with English'
type: profile
description: 'Minimal profile for running tests with a multilingual installer.'
version: VERSION
core: 8.x
hidden: true
dependencies:
- locale
keep_english: true