31 lines
		
	
	
		
			869 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
		
		
			
		
	
	
			31 lines
		
	
	
		
			869 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| 
								 | 
							
								name: 'Default comments'
							 | 
						||
| 
								 | 
							
								description: 'Allows commenting on content.'
							 | 
						||
| 
								 | 
							
								type: 'Comment type'
							 | 
						||
| 
								 | 
							
								install:
							 | 
						||
| 
								 | 
							
								  - comment
							 | 
						||
| 
								 | 
							
								  - node
							 | 
						||
| 
								 | 
							
								  - views
							 | 
						||
| 
								 | 
							
								config:
							 | 
						||
| 
								 | 
							
								  strict:
							 | 
						||
| 
								 | 
							
								    # Treat field storages strictly, since they influence the database layout.
							 | 
						||
| 
								 | 
							
								    - field.storage.comment.comment_body
							 | 
						||
| 
								 | 
							
								    - field.storage.node.comment
							 | 
						||
| 
								 | 
							
								  import:
							 | 
						||
| 
								 | 
							
								    comment:
							 | 
						||
| 
								 | 
							
								      - core.entity_view_mode.comment.full
							 | 
						||
| 
								 | 
							
								      - field.storage.comment.comment_body
							 | 
						||
| 
								 | 
							
								      - system.action.comment_delete_action
							 | 
						||
| 
								 | 
							
								      - system.action.comment_publish_action
							 | 
						||
| 
								 | 
							
								      - system.action.comment_save_action
							 | 
						||
| 
								 | 
							
								      - system.action.comment_unpublish_action
							 | 
						||
| 
								 | 
							
								      - views.view.comment
							 | 
						||
| 
								 | 
							
								      - views.view.comments_recent
							 | 
						||
| 
								 | 
							
								  actions:
							 | 
						||
| 
								 | 
							
								    user.role.authenticated:
							 | 
						||
| 
								 | 
							
								      grantPermissions:
							 | 
						||
| 
								 | 
							
								        - 'access comments'
							 | 
						||
| 
								 | 
							
								        - 'post comments'
							 | 
						||
| 
								 | 
							
								        - 'skip comment approval'
							 | 
						||
| 
								 | 
							
								    user.role.anonymous:
							 | 
						||
| 
								 | 
							
								      grantPermission: 'access comments'
							 |