Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
id: comment.full
|
||||
label: 'Full comment'
|
||||
status: false
|
||||
cache: true
|
||||
targetEntityType: comment
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
||||
- text
|
||||
id: comment.comment_body
|
||||
field_name: comment_body
|
||||
entity_type: comment
|
||||
type: text_long
|
||||
settings: { }
|
||||
module: text
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: true
|
|
@ -0,0 +1,9 @@
|
|||
id: comment_publish_action
|
||||
label: 'Publish comment'
|
||||
status: true
|
||||
langcode: en
|
||||
type: comment
|
||||
plugin: comment_publish_action
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
|
@ -0,0 +1,9 @@
|
|||
id: comment_save_action
|
||||
label: 'Save comment'
|
||||
status: true
|
||||
langcode: en
|
||||
type: comment
|
||||
plugin: comment_save_action
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
|
@ -0,0 +1,9 @@
|
|||
id: comment_unpublish_action
|
||||
label: 'Unpublish comment'
|
||||
status: true
|
||||
langcode: en
|
||||
type: comment
|
||||
plugin: comment_unpublish_action
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
|
@ -0,0 +1,245 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- comment
|
||||
- user
|
||||
id: comments_recent
|
||||
label: 'Recent comments'
|
||||
module: views
|
||||
description: 'Recent comments.'
|
||||
tag: default
|
||||
base_table: comment_field_data
|
||||
base_field: cid
|
||||
core: 8.x
|
||||
display:
|
||||
default:
|
||||
display_plugin: default
|
||||
id: default
|
||||
display_title: Master
|
||||
position: 0
|
||||
display_options:
|
||||
access:
|
||||
type: perm
|
||||
options:
|
||||
perm: 'access comments'
|
||||
cache:
|
||||
type: tag
|
||||
query:
|
||||
type: views_query
|
||||
exposed_form:
|
||||
type: basic
|
||||
pager:
|
||||
type: some
|
||||
options:
|
||||
items_per_page: 10
|
||||
offset: 0
|
||||
style:
|
||||
type: html_list
|
||||
options:
|
||||
grouping: { }
|
||||
row_class: ''
|
||||
default_row_class: true
|
||||
type: ul
|
||||
wrapper_class: item-list
|
||||
class: ''
|
||||
row:
|
||||
type: fields
|
||||
options:
|
||||
default_field_elements: true
|
||||
inline:
|
||||
subject: subject
|
||||
changed: changed
|
||||
separator: ' '
|
||||
hide_empty: false
|
||||
relationships:
|
||||
node:
|
||||
field: node
|
||||
id: node
|
||||
table: comment_field_data
|
||||
required: true
|
||||
plugin_id: standard
|
||||
fields:
|
||||
subject:
|
||||
id: subject
|
||||
table: comment_field_data
|
||||
field: subject
|
||||
relationship: none
|
||||
type: string
|
||||
settings:
|
||||
link_to_entity: true
|
||||
plugin_id: field
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: ''
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: false
|
||||
ellipsis: false
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
entity_type: comment
|
||||
entity_field: subject
|
||||
changed:
|
||||
id: changed
|
||||
table: comment_field_data
|
||||
field: changed
|
||||
relationship: none
|
||||
plugin_id: date
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: ''
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
date_format: 'time ago'
|
||||
custom_date_format: ''
|
||||
timezone: ''
|
||||
entity_type: comment
|
||||
entity_field: changed
|
||||
filters:
|
||||
status:
|
||||
value: true
|
||||
table: comment_field_data
|
||||
field: status
|
||||
id: status
|
||||
plugin_id: boolean
|
||||
expose:
|
||||
operator: ''
|
||||
group: 1
|
||||
entity_type: comment
|
||||
entity_field: status
|
||||
status_node:
|
||||
value: true
|
||||
table: node_field_data
|
||||
field: status
|
||||
relationship: node
|
||||
id: status_node
|
||||
plugin_id: boolean
|
||||
expose:
|
||||
operator: ''
|
||||
group: 1
|
||||
entity_type: node
|
||||
entity_field: status
|
||||
sorts:
|
||||
created:
|
||||
id: created
|
||||
table: comment_field_data
|
||||
field: created
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
order: DESC
|
||||
exposed: false
|
||||
expose:
|
||||
label: ''
|
||||
plugin_id: date
|
||||
entity_type: comment
|
||||
entity_field: created
|
||||
cid:
|
||||
id: cid
|
||||
table: comment_field_data
|
||||
field: cid
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
order: DESC
|
||||
exposed: false
|
||||
plugin_id: field
|
||||
entity_type: comment
|
||||
entity_field: cid
|
||||
title: 'Recent comments'
|
||||
empty:
|
||||
area_text_custom:
|
||||
id: area_text_custom
|
||||
table: views
|
||||
field: area_text_custom
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: ''
|
||||
empty: true
|
||||
content: 'No comments available.'
|
||||
tokenize: false
|
||||
plugin_id: text_custom
|
||||
block_1:
|
||||
display_plugin: block
|
||||
id: block_1
|
||||
display_title: Block
|
||||
position: 1
|
||||
display_options:
|
||||
block_description: 'Recent comments'
|
||||
block_category: 'Lists (Views)'
|
||||
allow:
|
||||
items_per_page: true
|
104
core/modules/comment/config/schema/comment.schema.yml
Normal file
104
core/modules/comment/config/schema/comment.schema.yml
Normal file
|
@ -0,0 +1,104 @@
|
|||
# Schema for the configuration files of the Comment module.
|
||||
|
||||
field.formatter.settings.comment_default:
|
||||
type: mapping
|
||||
label: 'Comment display format settings'
|
||||
mapping:
|
||||
pager_id:
|
||||
type: integer
|
||||
label: 'Pager ID'
|
||||
|
||||
field.widget.settings.comment_default:
|
||||
type: mapping
|
||||
label: 'Comment display format settings'
|
||||
|
||||
action.configuration.comment_publish_action:
|
||||
type: action_configuration_default
|
||||
label: 'Publish comment configuration'
|
||||
|
||||
action.configuration.comment_save_action:
|
||||
type: action_configuration_default
|
||||
label: 'Save comment configuration'
|
||||
|
||||
action.configuration.comment_unpublish_by_keyword_action:
|
||||
type: mapping
|
||||
label: 'Unpublish comment containing keyword(s) configuration'
|
||||
mapping:
|
||||
keywords:
|
||||
type: sequence
|
||||
label: 'Keywords'
|
||||
sequence:
|
||||
type: string
|
||||
label: 'Keyword'
|
||||
|
||||
action.configuration.comment_unpublish_action:
|
||||
type: action_configuration_default
|
||||
label: 'Unpublish comment configuration'
|
||||
|
||||
comment.type.*:
|
||||
type: config_entity
|
||||
label: 'Comment type settings'
|
||||
mapping:
|
||||
id:
|
||||
type: string
|
||||
label: 'ID'
|
||||
label:
|
||||
type: label
|
||||
label: 'Label'
|
||||
target_entity_type_id:
|
||||
type: string
|
||||
label: 'Target Entity Type ID'
|
||||
description:
|
||||
type: text
|
||||
label: 'Description'
|
||||
|
||||
field.storage_settings.comment:
|
||||
type: mapping
|
||||
label: 'Comment settings'
|
||||
mapping:
|
||||
comment_type:
|
||||
label: 'Comment type'
|
||||
type: string
|
||||
|
||||
field.value.comment:
|
||||
type: mapping
|
||||
label: 'Default value'
|
||||
mapping:
|
||||
status:
|
||||
type: integer
|
||||
label: 'Comment status'
|
||||
cid:
|
||||
type: integer
|
||||
label: 'Last comment ID'
|
||||
last_comment_timestamp:
|
||||
type: integer
|
||||
label: 'Last comment timestamp'
|
||||
last_comment_name:
|
||||
type: integer
|
||||
label: 'Last comment name'
|
||||
last_comment_uid:
|
||||
type: integer
|
||||
label: 'Last comment user ID'
|
||||
comment_count:
|
||||
type: integer
|
||||
label: 'Number of comments'
|
||||
|
||||
field.field_settings.comment:
|
||||
type: mapping
|
||||
label: 'Comment settings'
|
||||
mapping:
|
||||
default_mode:
|
||||
type: integer
|
||||
label: 'Threading'
|
||||
per_page:
|
||||
type: integer
|
||||
label: 'Comments per page'
|
||||
anonymous:
|
||||
type: integer
|
||||
label: 'Mode'
|
||||
form_location:
|
||||
type: boolean
|
||||
label: ' Allow comment title'
|
||||
preview:
|
||||
type: integer
|
||||
label: 'Preview comment'
|
77
core/modules/comment/config/schema/comment.views.schema.yml
Normal file
77
core/modules/comment/config/schema/comment.views.schema.yml
Normal file
|
@ -0,0 +1,77 @@
|
|||
# Schema for the views plugins of the Comment module.
|
||||
|
||||
views.argument.argument_comment_user_uid:
|
||||
type: views_argument
|
||||
label: 'Commented user ID'
|
||||
|
||||
views.field.comment_depth:
|
||||
type: views_field
|
||||
label: 'Comment depth'
|
||||
|
||||
views.field.comment_entity_link:
|
||||
type: views_field
|
||||
label: 'Comment link'
|
||||
mapping:
|
||||
teaser:
|
||||
type: boolean
|
||||
label: 'Show teaser-style link'
|
||||
|
||||
views.field.comment_last_timestamp:
|
||||
type: views.field.date
|
||||
label: 'Last comment date'
|
||||
|
||||
views.field.comment_link_approve:
|
||||
type: views.field.comment_link
|
||||
label: 'Comment approve link'
|
||||
|
||||
views.field.comment_link_reply:
|
||||
type: views.field.comment_link
|
||||
label: 'Comment reply link'
|
||||
|
||||
views.field.node_new_comments:
|
||||
type: views.field.numeric
|
||||
label: 'Number of new comments'
|
||||
mapping:
|
||||
link_to_comment:
|
||||
type: boolean
|
||||
label: 'Link this field to new comments'
|
||||
|
||||
views.field.comment_ces_last_comment_name:
|
||||
type: views_field
|
||||
label: 'Name of last comment poster'
|
||||
|
||||
views.field.comment_ces_last_updated:
|
||||
type: views_field
|
||||
label: 'Newer of last comment / node updated'
|
||||
|
||||
views.filter.node_comment:
|
||||
type: views.filter.in_operator
|
||||
label: 'Comment node status'
|
||||
|
||||
views.filter.comment_ces_last_updated:
|
||||
type: views.filter.date
|
||||
label: 'Newer of last comment / node updated'
|
||||
|
||||
views.filter.comment_user_uid:
|
||||
type: views_filter
|
||||
label: 'Node user posted comment'
|
||||
|
||||
views.row.comment_rss:
|
||||
type: views_row
|
||||
label: 'Comment'
|
||||
mapping:
|
||||
view_mode:
|
||||
type: string
|
||||
label: 'Display type'
|
||||
|
||||
views.sort.comment_ces_last_comment_name:
|
||||
type: views_sort
|
||||
label: 'Last comment name'
|
||||
|
||||
views.sort.comment_ces_last_updated:
|
||||
type: views.sort.date
|
||||
label: 'Newer of last comment / entity updated'
|
||||
|
||||
views.sort.comment_thread:
|
||||
type: views_sort
|
||||
label: 'Thread'
|
Reference in a new issue