summaryrefslogtreecommitdiff
path: root/modules/esha/labmanual/config/install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/esha/labmanual/config/install')
-rw-r--r--modules/esha/labmanual/config/install/core.entity_form_display.node.lab_manual.default.yml91
-rw-r--r--modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.default.yml40
-rw-r--r--modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.teaser.yml27
-rw-r--r--modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml15
-rw-r--r--modules/esha/labmanual/config/install/field.field.node.lab_manual.field_description.yml21
-rw-r--r--modules/esha/labmanual/config/install/field.field.node.lab_manual.field_manual.yml29
-rw-r--r--modules/esha/labmanual/config/install/field.storage.node.field_description.yml22
-rw-r--r--modules/esha/labmanual/config/install/field.storage.node.field_manual.yml26
-rw-r--r--modules/esha/labmanual/config/install/migrate_plus.migration.labmanuals_import.yml51
-rw-r--r--modules/esha/labmanual/config/install/node.type.lab_manual.yml20
10 files changed, 342 insertions, 0 deletions
diff --git a/modules/esha/labmanual/config/install/core.entity_form_display.node.lab_manual.default.yml b/modules/esha/labmanual/config/install/core.entity_form_display.node.lab_manual.default.yml
new file mode 100644
index 0000000..084c912
--- /dev/null
+++ b/modules/esha/labmanual/config/install/core.entity_form_display.node.lab_manual.default.yml
@@ -0,0 +1,91 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.lab_manual.field_description
+ - field.field.node.lab_manual.field_manual
+ - node.type.lab_manual
+ module:
+ - file
+ - path
+ enforced:
+ module:
+ - labmanual
+id: node.lab_manual.default
+targetEntityType: node
+bundle: lab_manual
+mode: default
+content:
+ created:
+ type: datetime_timestamp
+ weight: 10
+ region: content
+ settings: { }
+ third_party_settings: { }
+ field_description:
+ weight: 122
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: string_textarea
+ region: content
+ field_manual:
+ weight: 123
+ settings:
+ progress_indicator: throbber
+ third_party_settings: { }
+ type: file_generic
+ region: content
+ langcode:
+ type: language_select
+ weight: 2
+ region: content
+ settings:
+ include_locked: true
+ third_party_settings: { }
+ path:
+ type: path
+ weight: 30
+ region: content
+ settings: { }
+ third_party_settings: { }
+ promote:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 15
+ region: content
+ third_party_settings: { }
+ status:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 120
+ region: content
+ third_party_settings: { }
+ sticky:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 16
+ region: content
+ third_party_settings: { }
+ title:
+ type: string_textfield
+ weight: -5
+ region: content
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ uid:
+ type: entity_reference_autocomplete
+ weight: 5
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ region: content
+ third_party_settings: { }
+hidden: { }
diff --git a/modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.default.yml b/modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.default.yml
new file mode 100644
index 0000000..a04bdb4
--- /dev/null
+++ b/modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.default.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.lab_manual.field_description
+ - field.field.node.lab_manual.field_manual
+ - node.type.lab_manual
+ module:
+ - file
+ - user
+ enforced:
+ module:
+ - labmanual
+id: node.lab_manual.default
+targetEntityType: node
+bundle: lab_manual
+mode: default
+content:
+ field_description:
+ weight: 102
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: basic_string
+ region: content
+ field_manual:
+ weight: 103
+ label: above
+ settings:
+ use_description_as_link_text: true
+ third_party_settings: { }
+ type: file_default
+ region: content
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ langcode: true
diff --git a/modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.teaser.yml b/modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.teaser.yml
new file mode 100644
index 0000000..d083bbc
--- /dev/null
+++ b/modules/esha/labmanual/config/install/core.entity_view_display.node.lab_manual.teaser.yml
@@ -0,0 +1,27 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.lab_manual.field_description
+ - field.field.node.lab_manual.field_manual
+ - node.type.lab_manual
+ module:
+ - user
+ enforced:
+ module:
+ - labmanual
+id: node.lab_manual.teaser
+targetEntityType: node
+bundle: lab_manual
+mode: teaser
+content:
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ field_description: true
+ field_manual: true
+ langcode: true
diff --git a/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml
new file mode 100644
index 0000000..ce0398e
--- /dev/null
+++ b/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml
@@ -0,0 +1,15 @@
+uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ enforced:
+ module:
+ - labmanual
+_core:
+ default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4
+id: node.teaser
+label: Teaser
+targetEntityType: node
+cache: true
diff --git a/modules/esha/labmanual/config/install/field.field.node.lab_manual.field_description.yml b/modules/esha/labmanual/config/install/field.field.node.lab_manual.field_description.yml
new file mode 100644
index 0000000..e31a4ba
--- /dev/null
+++ b/modules/esha/labmanual/config/install/field.field.node.lab_manual.field_description.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_description
+ - node.type.lab_manual
+ enforced:
+ module:
+ - labmanual
+id: node.lab_manual.field_description
+field_name: field_description
+entity_type: node
+bundle: lab_manual
+label: Description
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: string_long
diff --git a/modules/esha/labmanual/config/install/field.field.node.lab_manual.field_manual.yml b/modules/esha/labmanual/config/install/field.field.node.lab_manual.field_manual.yml
new file mode 100644
index 0000000..b953977
--- /dev/null
+++ b/modules/esha/labmanual/config/install/field.field.node.lab_manual.field_manual.yml
@@ -0,0 +1,29 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_manual
+ - node.type.lab_manual
+ module:
+ - file
+ enforced:
+ module:
+ - labmanual
+id: node.lab_manual.field_manual
+field_name: field_manual
+entity_type: node
+bundle: lab_manual
+label: Manual
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: lab_manuals
+ file_extensions: pdf
+ max_filesize: ''
+ description_field: false
+ handler: 'default:file'
+ handler_settings: { }
+field_type: file
diff --git a/modules/esha/labmanual/config/install/field.storage.node.field_description.yml b/modules/esha/labmanual/config/install/field.storage.node.field_description.yml
new file mode 100644
index 0000000..f272899
--- /dev/null
+++ b/modules/esha/labmanual/config/install/field.storage.node.field_description.yml
@@ -0,0 +1,22 @@
+uuid: 2607b4e4-518c-4aff-9b49-5f398e718487
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ enforced:
+ module:
+ - labmanual
+id: node.field_description
+field_name: field_description
+entity_type: node
+type: string_long
+settings:
+ case_sensitive: false
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml b/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml
new file mode 100644
index 0000000..9070112
--- /dev/null
+++ b/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml
@@ -0,0 +1,26 @@
+uuid: 9772805f-ffb2-443f-afdd-0bc6dfd48416
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - node
+ enforced:
+ module:
+ - labmanual
+id: node.field_manual
+field_name: field_manual
+entity_type: node
+type: file
+settings:
+ display_field: false
+ display_default: false
+ uri_scheme: public
+ target_type: file
+module: file
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/esha/labmanual/config/install/migrate_plus.migration.labmanuals_import.yml b/modules/esha/labmanual/config/install/migrate_plus.migration.labmanuals_import.yml
new file mode 100644
index 0000000..e6e6a38
--- /dev/null
+++ b/modules/esha/labmanual/config/install/migrate_plus.migration.labmanuals_import.yml
@@ -0,0 +1,51 @@
+uuid: c04b2ca4-cd30-4aa3-b742-d558a856d094
+id: labmanuals_import
+label: labmanual
+migration_group: default
+source:
+ plugin: csv
+ # Full path to the file.
+ path: '/var/www/CSV/LabManual.csv'
+ # Column delimiter. Comma (,) by default.
+ delimiter: ','
+ # Field enclosure. Double quotation marks (") by default.
+ enclosure: '"'
+ # The number of rows at the beginning which are not data.
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/LabManuals
+ file_dest: 'public://lab_manuals/'
+process:
+ type:
+ plugin: default_value
+ default_value: lab_manual
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: manual
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - manual
+ title: title
+ body/value: body
+ body/format:
+ -
+ plugin: default_value
+ default_value: basic_html
+ field_description: description
+ field_manual:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+destination:
+ plugin: 'entity:node'
+ bundle: lab_manual
+migration_dependencies:
+ required: { }
+ optional: { }
diff --git a/modules/esha/labmanual/config/install/node.type.lab_manual.yml b/modules/esha/labmanual/config/install/node.type.lab_manual.yml
new file mode 100644
index 0000000..f624421
--- /dev/null
+++ b/modules/esha/labmanual/config/install/node.type.lab_manual.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - labmanual
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'Lab Manual'
+type: lab_manual
+description: ''
+help: ''
+new_revision: false
+preview_mode: 1
+display_submitted: false