Initial Drupal 11 with DDEV setup
This commit is contained in:
22
web/core/modules/search/migrations/d6_search_settings.yml
Normal file
22
web/core/modules/search/migrations/d6_search_settings.yml
Normal file
@ -0,0 +1,22 @@
|
||||
id: d6_search_settings
|
||||
label: Search configuration
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Configuration
|
||||
source:
|
||||
plugin: variable
|
||||
constants:
|
||||
status: true
|
||||
variables:
|
||||
- minimum_word_size
|
||||
- overlap_cjk
|
||||
- search_cron_limit
|
||||
source_module: search
|
||||
process:
|
||||
'index/minimum_word_size': minimum_word_size
|
||||
'index/overlap_cjk': overlap_cjk
|
||||
'index/cron_limit': search_cron_limit
|
||||
logging: 'constants/status'
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: search.settings
|
||||
56
web/core/modules/search/migrations/d7_search_page.yml
Normal file
56
web/core/modules/search/migrations/d7_search_page.yml
Normal file
@ -0,0 +1,56 @@
|
||||
id: d7_search_page
|
||||
label: Search page configuration
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
source:
|
||||
plugin: d7_search_page
|
||||
variables:
|
||||
- node_rank_comments
|
||||
- node_rank_promote
|
||||
- node_rank_relevance
|
||||
- node_rank_sticky
|
||||
- node_rank_views
|
||||
constants:
|
||||
suffix: _search
|
||||
process:
|
||||
module: module
|
||||
module_exists:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
source: module_exists
|
||||
status:
|
||||
-
|
||||
plugin: static_map
|
||||
source: status
|
||||
map:
|
||||
node: true
|
||||
user: true
|
||||
default_value: false
|
||||
id:
|
||||
-
|
||||
plugin: concat
|
||||
source:
|
||||
- module
|
||||
- 'constants/suffix'
|
||||
label:
|
||||
-
|
||||
plugin: concat
|
||||
source:
|
||||
- module
|
||||
- 'constants/suffix'
|
||||
plugin:
|
||||
-
|
||||
plugin: concat
|
||||
source:
|
||||
- module
|
||||
- 'constants/suffix'
|
||||
path: module
|
||||
configuration:
|
||||
plugin: default_value
|
||||
default_value: [ ]
|
||||
'configuration/rankings':
|
||||
plugin: search_configuration_rankings
|
||||
destination:
|
||||
plugin: entity:search_page
|
||||
34
web/core/modules/search/migrations/d7_search_settings.yml
Normal file
34
web/core/modules/search/migrations/d7_search_settings.yml
Normal file
@ -0,0 +1,34 @@
|
||||
id: d7_search_settings
|
||||
label: Search configuration
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
source:
|
||||
plugin: variable
|
||||
constants:
|
||||
status: true
|
||||
variables_no_row_if_missing:
|
||||
- minimum_word_size
|
||||
- overlap_cjk
|
||||
- search_cron_limit
|
||||
- search_tag_weights
|
||||
- search_and_or_limit
|
||||
- search_default_module
|
||||
source_module: search
|
||||
process:
|
||||
'index/minimum_word_size': minimum_word_size
|
||||
'index/overlap_cjk': overlap_cjk
|
||||
'index/cron_limit': search_cron_limit
|
||||
'index/tag_weights': search_tag_weights
|
||||
and_or_limit: search_and_or_limit
|
||||
logging: 'constants/status'
|
||||
default_page:
|
||||
plugin: static_map
|
||||
source:
|
||||
- search_default_module
|
||||
map:
|
||||
node: node_search
|
||||
user: user_search
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: search.settings
|
||||
31
web/core/modules/search/migrations/search_page.yml
Normal file
31
web/core/modules/search/migrations/search_page.yml
Normal file
@ -0,0 +1,31 @@
|
||||
id: search_page
|
||||
label: Search page configuration
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Configuration
|
||||
source:
|
||||
plugin: d6_search_page
|
||||
variables:
|
||||
- node_rank_comments
|
||||
- node_rank_promote
|
||||
- node_rank_recent
|
||||
- node_rank_relevance
|
||||
- node_rank_sticky
|
||||
- node_rank_views
|
||||
constants:
|
||||
id: node_search
|
||||
path: node
|
||||
plugin: node_search
|
||||
process:
|
||||
module: module
|
||||
id: 'constants/id'
|
||||
label: 'constants/id'
|
||||
path: 'constants/path'
|
||||
plugin: 'constants/plugin'
|
||||
configuration:
|
||||
plugin: default_value
|
||||
default_value: [ ]
|
||||
'configuration/rankings':
|
||||
plugin: search_configuration_rankings
|
||||
destination:
|
||||
plugin: entity:search_page
|
||||
@ -0,0 +1,5 @@
|
||||
finished:
|
||||
6:
|
||||
search: search
|
||||
7:
|
||||
search: search
|
||||
Reference in New Issue
Block a user