diff --git a/composer.json b/composer.json index 9830002..78866dc 100644 --- a/composer.json +++ b/composer.json @@ -6,17 +6,17 @@ ], "require": { "drupal/core": "*", - "drupal/metatag": "^1.13", + "drupal/metatag": "^2.0", "drupal/easy_breadcrumb": "^2.0", - "drupal/extlink": "^1.3", - "drupal/editor_advanced_link": "^1.6", - "drupal/ckeditor_iframe": "^2.0", - "drupal/linkit": "^5.0.0-beta10 || ^6.0", + "drupal/extlink": "^2.0", + "drupal/editor_advanced_link": "2.x-dev@dev", + "drupal/ckeditor_iframe": "^3.0@alpha", + "drupal/linkit": "^6.1", "drupal/pathauto": "^1.5", - "drupal/chosen": "^2.9.0", - "drupal/textfield_counter": "*", - "drupal/redirect": "*", - "drupal/save_edit": "^1.3" + "drupal/chosen": "^4.0", + "drupal/textfield_counter": "^2.3", + "drupal/redirect": "^1.9", + "drupal/save_edit": "^1.7" }, "license": "EUPL-1.2", "minimum-stability": "dev" diff --git a/config/optional/core.entity_form_display.taxonomy_term.media_folders.default.yml b/config/optional/core.entity_form_display.taxonomy_term.media_folders.default.yml new file mode 100644 index 0000000..7c06438 --- /dev/null +++ b/config/optional/core.entity_form_display.taxonomy_term.media_folders.default.yml @@ -0,0 +1,55 @@ +uuid: 67eccc78-48e5-4748-a888-20b5d120b34d +langcode: da +status: true +dependencies: + config: + - taxonomy.vocabulary.media_folders + module: + - path + - text +id: taxonomy_term.media_folders.default +targetEntityType: taxonomy_term +bundle: media_folders +mode: default +content: + description: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + name: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + weight: 100 + region: content + settings: + display_label: true + third_party_settings: { } +hidden: + publish_on: true + publish_state: true + unpublish_on: true + unpublish_state: true diff --git a/config/optional/editor.editor.webform_default.yml b/config/optional/editor.editor.webform_default.yml new file mode 100644 index 0000000..cce7ae1 --- /dev/null +++ b/config/optional/editor.editor.webform_default.yml @@ -0,0 +1,48 @@ +langcode: en +status: true +dependencies: + config: + - filter.format.webform_default + module: + - ckeditor5 +format: webform_default +editor: ckeditor5 +settings: + toolbar: + items: + - heading + - '|' + - bold + - italic + - subscript + - superscript + - '|' + - specialCharacters + - '|' + - numberedList + - bulletedList + - '|' + - link + - '|' + - indent + - outdent + - '|' + - blockQuote + - '|' + - sourceEditing + plugins: + ckeditor5_heading: + enabled_headings: + - heading2 + - heading3 + - heading4 + - heading5 + - heading6 + ckeditor5_list: + properties: + reversed: true + startIndex: true + multiBlock: true + ckeditor5_sourceEditing: + allowed_tags: { } +image_upload: { } diff --git a/config/optional/editor.editor.wysiwyg_tekst.yml b/config/optional/editor.editor.wysiwyg_tekst.yml index 11d1549..d56d179 100644 --- a/config/optional/editor.editor.wysiwyg_tekst.yml +++ b/config/optional/editor.editor.wysiwyg_tekst.yml @@ -4,74 +4,135 @@ dependencies: config: - filter.format.wysiwyg_tekst module: - - ckeditor + - ckeditor5 format: wysiwyg_tekst -editor: ckeditor +editor: ckeditor5 settings: toolbar: - rows: - - + items: + - heading + - bold + - italic + - '|' + - blockQuote + - code + - bulletedList + - numberedList + - indent + - outdent + - alignment + - underline + - strikethrough + - insertTable + - drupalInsertImage + - media_directories + - codeBlock + - sourceEditing + - link + - iframeEmbed + plugins: + ckeditor5_alignment: + enabled_alignments: + - center + - justify + - left + - right + ckeditor5_codeBlock: + languages: - - name: Formatering - items: - - Format - - Bold - - Underline - - Italic - - Strike + label: 'Plain text' + language: plaintext - - name: Edit - items: - - Paste - - PasteText - - PasteFromWord - - Undo - - Redo + label: C + language: c - - name: Alignment - items: - - JustifyCenter - - JustifyLeft - - JustifyRight - - JustifyBlock + label: 'C#' + language: cs - - name: Links - items: - - DrupalLink - - DrupalUnlink + label: C++ + language: cpp - - name: Lister - items: - - BulletedList - - NumberedList - - Table + label: CSS + language: css - - name: Media - items: - - Blockquote - - DrupalImage + label: Diff + language: diff - - name: Embed - items: - - Iframe + label: HTML + language: html - - name: Værktøjer - items: - - Source - - RemoveFormat - plugins: - stylescombo: - styles: '' - language: - language_list: un - drupallink: + label: Java + language: java + - + label: JavaScript + language: javascript + - + label: PHP + language: php + - + label: Python + language: python + - + label: Ruby + language: ruby + - + label: TypeScript + language: typescript + - + label: XML + language: xml + ckeditor5_heading: + enabled_headings: + - heading1 + - heading2 + - heading3 + - heading4 + - heading5 + - heading6 + ckeditor5_imageResize: + allow_resize: true + ckeditor5_list: + properties: + reversed: false + startIndex: true + multiBlock: true + ckeditor5_sourceEditing: + allowed_tags: + - '' + - '
' + - '
' + - '
' + - '' + - '
' + - '
    ' + - '
      ' + - '' + - '
      ' + - '

      ' + - '

      ' + - '

      ' + - '

      ' + - '
      ' + - '

      ' + ckeditor_iframe_embed_iframeembed: + enabled_optional_attributes: + - height + - width + - name + - tabindex + - title + editor_advanced_link_link: + enabled_attributes: { } + linkit_extension: linkit_enabled: true - linkit_profile: os2web_hjemmeside + linkit_profile: default + media_media: + allow_view_mode_override: false image_upload: status: false scheme: public directory: inline-images max_size: '' max_dimensions: - width: 2000 - height: 2000 + width: 0 + height: 0 diff --git a/config/optional/embed.button.media_directories.yml b/config/optional/embed.button.media_directories.yml new file mode 100644 index 0000000..cceb64a --- /dev/null +++ b/config/optional/embed.button.media_directories.yml @@ -0,0 +1,28 @@ +uuid: ec183e1e-a57b-422b-ba13-485721f983c7 +langcode: da +status: true +dependencies: + config: + - entity_browser.browser.media_directories_editor_browser + module: + - entity_embed + - media + - media_directories_editor +_core: + default_config_hash: jOVjHoQgVR9dBBm3QBPPmHQlg9DRd5IO3qsy1SOSWHU +label: Media +id: media_directories +type_id: entity +type_settings: + entity_type: media + bundles: { } + display_plugins: + - 'entity_reference:media_directories_image_dimensions' + - 'view_mode:media.full' + entity_browser: media_directories_editor_browser + entity_browser_settings: + display_review: false +icon: + uri: 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8L3N2Zz4= +icon_uuid: null diff --git a/config/optional/entity_browser.browser.media_directories_editor_browser.yml b/config/optional/entity_browser.browser.media_directories_editor_browser.yml new file mode 100644 index 0000000..d282052 --- /dev/null +++ b/config/optional/entity_browser.browser.media_directories_editor_browser.yml @@ -0,0 +1,29 @@ +uuid: e4b60d51-0167-4ea4-b92d-016e25d23898 +langcode: da +status: true +dependencies: + module: + - views +_core: + default_config_hash: Ft-_y8y1CaFeczXk7k90GmfNeCe_M3LPb1zCJDcwy1Y +name: media_directories_editor_browser +label: 'Media Directories: Editor widget' +display: iframe +display_configuration: + width: '' + height: '' + link_text: 'Select entities' + auto_open: true +selection_display: no_display +selection_display_configuration: { } +widget_selector: single +widget_selector_configuration: { } +widgets: + 5bc2a17c-b080-4a3b-867c-7953ae9b55c4: + id: media_directories_browser_widget + uuid: 5bc2a17c-b080-4a3b-867c-7953ae9b55c4 + label: 'Directory browser' + weight: -10 + settings: + submit_text: 'Select media' + auto_select: 0 diff --git a/config/optional/entity_browser.browser.media_directories_modal.yml b/config/optional/entity_browser.browser.media_directories_modal.yml new file mode 100644 index 0000000..1932872 --- /dev/null +++ b/config/optional/entity_browser.browser.media_directories_modal.yml @@ -0,0 +1,29 @@ +uuid: e9dd5c61-56c4-4a18-b42b-3e9310f1cb1a +langcode: da +status: true +dependencies: + module: + - views +_core: + default_config_hash: 9jlEbfJ5s9oFKv18z5W61XQok2xQOSPAHCJ448vlSVw +name: media_directories_modal +label: 'Media Directories: Field widget' +display: modal +display_configuration: + width: '' + height: '' + link_text: 'Vælg medie' + auto_open: false +selection_display: no_display +selection_display_configuration: { } +widget_selector: single +widget_selector_configuration: { } +widgets: + 24011187-a4c0-42f1-a71a-eec339d3721f: + id: media_directories_browser_widget + uuid: 24011187-a4c0-42f1-a71a-eec339d3721f + label: Browser + weight: -10 + settings: + submit_text: 'Select media' + auto_select: 0 diff --git a/config/optional/entity_browser.browser.media_directories_overview.yml b/config/optional/entity_browser.browser.media_directories_overview.yml new file mode 100644 index 0000000..07166ae --- /dev/null +++ b/config/optional/entity_browser.browser.media_directories_overview.yml @@ -0,0 +1,26 @@ +uuid: 7f7a4218-5a9c-4de0-b1a1-4e0224f130b2 +langcode: da +status: true +dependencies: + module: + - views +_core: + default_config_hash: fwYnA3r1hTsmdfWhNHjuT32WZwfmgm9MeW9Qld0bv_A +name: media_directories_overview +label: 'Media Directories: Standalone' +display: standalone +display_configuration: + path: /admin/content/browser +selection_display: no_display +selection_display_configuration: { } +widget_selector: single +widget_selector_configuration: { } +widgets: + 35012080-4c05-4d06-aa7b-0a179e04a611: + id: media_directories_browser_widget + uuid: 35012080-4c05-4d06-aa7b-0a179e04a611 + label: Browser + weight: 1 + settings: + submit_text: 'Select entities' + auto_select: 0 diff --git a/config/optional/language.content_settings.taxonomy_term.media_folders.yml b/config/optional/language.content_settings.taxonomy_term.media_folders.yml new file mode 100644 index 0000000..1b1c68e --- /dev/null +++ b/config/optional/language.content_settings.taxonomy_term.media_folders.yml @@ -0,0 +1,11 @@ +uuid: 4716b44b-c340-4159-90ab-143209a6ceb0 +langcode: da +status: true +dependencies: + config: + - taxonomy.vocabulary.media_folders +id: taxonomy_term.media_folders +target_entity_type_id: taxonomy_term +target_bundle: media_folders +default_langcode: site_default +language_alterable: false diff --git a/config/optional/media_directories.settings.yml b/config/optional/media_directories.settings.yml new file mode 100644 index 0000000..4de8521 --- /dev/null +++ b/config/optional/media_directories.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: aipPq6CU2rqYYGujJSSE_kf2CLN0BEfpxkJwt2KjJPc +langcode: da +directory_taxonomy: media_folders +all_files_in_root: false diff --git a/config/optional/media_directories_editor.settings.yml b/config/optional/media_directories_editor.settings.yml new file mode 100644 index 0000000..cad3982 --- /dev/null +++ b/config/optional/media_directories_editor.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: ACWqqM3kpCGpWe-_tL74iZTeFbiEKQDRFr3R38bS69o +langcode: da +embed_dialog: + image_styles: { } diff --git a/config/optional/media_directories_ui.settings.yml b/config/optional/media_directories_ui.settings.yml new file mode 100644 index 0000000..0fefe64 --- /dev/null +++ b/config/optional/media_directories_ui.settings.yml @@ -0,0 +1,8 @@ +_core: + default_config_hash: 6ynzArDptMgNVdAPodaYCxp1_iI3gS-5vLfl5M7H13M +langcode: da +hide_media_library_media_tab: false +hide_media_library_files_tab: false +hide_admin_toolbar_links: false +enable_combined_upload: false +combined_upload_media_types: { } diff --git a/config/optional/taxonomy.vocabulary.media_folders.yml b/config/optional/taxonomy.vocabulary.media_folders.yml new file mode 100644 index 0000000..c2d3767 --- /dev/null +++ b/config/optional/taxonomy.vocabulary.media_folders.yml @@ -0,0 +1,24 @@ +uuid: 9033cc40-2958-4a7a-8d44-2e2219f60fe6 +langcode: da +status: true +dependencies: + module: + - scheduler +third_party_settings: + scheduler: + expand_fieldset: when_required + fields_display_mode: vertical_tab + publish_enable: false + publish_past_date: error + publish_past_date_created: false + publish_required: false + publish_revision: false + publish_touch: false + show_message_after_update: true + unpublish_enable: false + unpublish_required: false + unpublish_revision: false +name: 'Media folders' +vid: media_folders +description: '' +weight: 0 diff --git a/config/optional/user.role.editor.yml b/config/optional/user.role.editor.yml index 7bec12b..3ab6c71 100644 --- a/config/optional/user.role.editor.yml +++ b/config/optional/user.role.editor.yml @@ -12,43 +12,20 @@ permissions: - 'access files overview' - 'access media overview' - 'access os2web_borgerdk content overview' - - 'access skyfish entity browser pages' - 'access toolbar' - - 'add os2web spotbox entities' - 'administer menu' - - 'administer menu_link_content display' - 'administer redirects' - - 'configure own skyfish' - - 'create content translations' + - 'administer blocks' - 'create media' - - 'create os2web_hearings_hearing_case content' - - 'create os2web_page content' - 'delete media' - - 'delete own os2web_hearings_hearing_case content' - - 'delete own os2web_page content' - - 'edit os2web spotbox entities' - 'edit own comments' - - 'edit own os2web_hearings_hearing_case content' - - 'edit own os2web_page content' - - 'revert os2web_hearings_hearing_case revisions' - - 'revert os2web_page revisions' - 'schedule publishing of nodes' - - 'translate os2web_page node' - 'update media' - - 'use publish_content transition create_new_draft' - - 'use publish_content transition publish' - 'use text format wysiwyg_tekst' - 'view all media revisions' - - 'view all os2web spotbox revisions' - - 'view any unpublished content' - - 'view latest version' - 'view media' - 'view os2web_borgerdk content' - - 'view os2web_hearings_hearing_case revisions' - - 'view os2web_page revisions' - 'view own unpublished content' - 'view own unpublished media' - - 'view published os2web spotbox entities' - 'view scheduled content' - 'view the administration theme' - - 'view unpublished os2web spotbox entities' diff --git a/config/optional/user.role.webmaster.yml b/config/optional/user.role.webmaster.yml index fa9ae79..8b813af 100644 --- a/config/optional/user.role.webmaster.yml +++ b/config/optional/user.role.webmaster.yml @@ -11,21 +11,18 @@ permissions: - 'access content' - 'access content overview' - 'access contextual links' - - 'access delete and reassign user deletion' - 'access files overview' - 'access media overview' - 'access site reports' - 'access taxonomy overview' - 'access toolbar' - 'add os2web contact entities' - - 'add os2web spotbox entities' - 'administer blocks' - 'administer comments' - 'administer contact forms' - 'administer crop' - 'administer crop types' - 'administer easy breadcrumb' - - 'administer eu cookie compliance popup' - 'administer extlink' - 'administer filters' - 'administer image styles' @@ -34,78 +31,36 @@ permissions: - 'administer media types' - 'administer meta tags' - 'administer os2web contact entities' - - 'administer os2web spotbox entities' - - 'administer os2web_meetings configuration' - 'administer paragraphs settings' - 'administer scheduler' - 'administer taxonomy' - 'administer url aliases' - 'administer users' - 'change own username' - - 'create content translations' - 'create media' - - 'create os2web_hearings_hearing_case content' - - 'create os2web_page content' - - 'create os2web_system_page content' - 'create url aliases' - 'delete all os2web contact revisions' - - 'delete all os2web spotbox revisions' - 'delete all revisions' - 'delete any media' - - 'delete any os2web_hearings_hearing_case content' - - 'delete any os2web_page content' - - 'delete content translations' - 'delete media' - 'delete os2web contact entities' - - 'delete os2web spotbox entities' - - 'delete os2web_hearings_hearing_case revisions' - - 'delete os2web_page revisions' - - 'delete own os2web_hearings_hearing_case content' - - 'delete own os2web_page content' - - 'edit any os2web_hearings_hearing_case content' - - 'edit any os2web_page content' - 'edit os2web contact entities' - - 'edit os2web spotbox entities' - 'edit own comments' - - 'edit own os2web_hearings_hearing_case content' - - 'edit own os2web_page content' - 'post comments' - 'revert all os2web contact revisions' - - 'revert all os2web spotbox revisions' - 'revert all revisions' - - 'revert os2web_hearings_hearing_case revisions' - - 'revert os2web_page revisions' - 'schedule publishing of nodes' - 'skip comment approval' - - 'translate any entity' - - 'translate block_content' - - 'translate os2web_contact' - - 'translate os2web_page node' - - 'translate os2web_sektion taxonomy_term' - - 'translate os2web_spotbox' - - 'translate paragraph' - 'update any media' - - 'update content translations' - 'update media' - - 'use publish_content transition create_new_draft' - - 'use publish_content transition publish' - - 'use search_api_autocomplete for os2web_search' - 'use text format wysiwyg_tekst' - 'view all media revisions' - 'view all os2web contact revisions' - - 'view all os2web spotbox revisions' - 'view all revisions' - - 'view any unpublished content' - - 'view latest version' - 'view media' - - 'view os2web_hearings_hearing_case revisions' - - 'view os2web_page revisions' - - 'view own unpublished content' - 'view own unpublished media' - 'view published os2web contact entities' - - 'view published os2web spotbox entities' - 'view scheduled content' - 'view the administration theme' - 'view unpublished os2web contact entities' - - 'view unpublished os2web spotbox entities' - 'view unpublished paragraphs' diff --git a/config/optional/views.view.media_directories_base.yml b/config/optional/views.view.media_directories_base.yml new file mode 100644 index 0000000..4d15aae --- /dev/null +++ b/config/optional/views.view.media_directories_base.yml @@ -0,0 +1,405 @@ +uuid: c29d405e-e0fc-4e0d-b5db-1cf199ace143 +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.media.media_library + module: + - entity_browser + - media + - media_directories + - media_directories_ui + - user +_core: + default_config_hash: GFhvOm0OCSGT4YmhydVxLkhSLeO6jiWDEcAXjOHkgT8 +id: media_directories_base +label: 'Media directories browser' +module: views +description: '' +tag: '' +base_table: media_field_data +base_field: mid +display: + default: + id: default + display_title: Master + display_plugin: default + position: 0 + display_options: + fields: + entity_browser_select: + id: entity_browser_select + table: media + field: entity_browser_select + relationship: none + group_type: group + admin_label: '' + entity_type: media + plugin_id: entity_browser_select + 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 + rendered_entity: + id: rendered_entity + table: media + field: rendered_entity + relationship: none + group_type: group + admin_label: '' + entity_type: media + plugin_id: rendered_entity + 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: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + view_mode: media_library + pager: + type: full + options: + offset: 0 + items_per_page: 18 + total_pages: null + id: 0 + tags: + next: 'Næste ›' + previous: '‹ Forrige' + first: '« Første' + last: 'Sidste »' + expose: + items_per_page: false + items_per_page_label: 'Antal elementer' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- Alle -' + offset: false + offset_label: Forskydning + quantity: 9 + exposed_form: + type: basic + options: + submit_button: Udfør + reset_button: false + reset_button_label: Gendan + exposed_sorts_label: 'Sortér efter' + expose_sort_order: true + sort_asc_label: Stigende + sort_desc_label: Faldende + access: + type: perm + options: + perm: 'view media' + cache: + type: tag + options: { } + empty: + area_text_custom: + id: area + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: 'Folder is empty' + tokenize: false + sorts: + changed: + id: changed + table: media_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: media + entity_field: changed + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: '' + exposed: false + granularity: second + arguments: + directory: + id: directory + table: media_field_data + field: directory + relationship: none + group_type: group + admin_label: '' + entity_type: media + plugin_id: media_directory + default_action: default + exception: + value: all + title_enable: false + title: Alle + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '-1' + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + bundle: + id: bundle + table: media_field_data + field: bundle + relationship: none + group_type: group + admin_label: '' + entity_type: media + entity_field: bundle + plugin_id: string + default_action: ignore + exception: + value: all + title_enable: false + title: Alle + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + glossary: false + limit: 0 + case: none + path_case: none + transform_dash: false + break_phrase: true + media_name: + id: media_name + table: media_field_data + field: media_name + relationship: none + group_type: group + entity_type: media + plugin_id: media_directory_ui_string_contains + title_enable: false + default_argument_type: fixed + specify_validation: false + filters: + status: + id: status + table: media_field_data + field: status + entity_type: media + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + default_langcode: + id: default_langcode + table: media_field_data + field: default_langcode + relationship: none + group_type: group + admin_label: '' + entity_type: media + entity_field: default_langcode + plugin_id: boolean + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: false + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: + - 'config:core.entity_view_display.media.audio.default' + - 'config:core.entity_view_display.media.audio.media_library' + - 'config:core.entity_view_display.media.document.default' + - 'config:core.entity_view_display.media.document.media_library' + - 'config:core.entity_view_display.media.image.default' + - 'config:core.entity_view_display.media.image.media_library' + - 'config:core.entity_view_display.media.remote_video.default' + - 'config:core.entity_view_display.media.remote_video.media_library' + - 'config:core.entity_view_display.media.video.default' + - 'config:core.entity_view_display.media.video.media_library' + media_browser: + id: media_browser + display_title: 'Entity browser' + display_plugin: entity_browser + position: 2 + display_options: + rendering_language: '***LANGUAGE_language_interface***' + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: + - 'config:core.entity_view_display.media.audio.default' + - 'config:core.entity_view_display.media.audio.media_library' + - 'config:core.entity_view_display.media.document.default' + - 'config:core.entity_view_display.media.document.media_library' + - 'config:core.entity_view_display.media.image.default' + - 'config:core.entity_view_display.media.image.media_library' + - 'config:core.entity_view_display.media.remote_video.default' + - 'config:core.entity_view_display.media.remote_video.media_library' + - 'config:core.entity_view_display.media.video.default' + - 'config:core.entity_view_display.media.video.media_library' diff --git a/os2web_hjemmeside.info.yml b/os2web_hjemmeside.info.yml index a6b99c3..cd924ea 100644 --- a/os2web_hjemmeside.info.yml +++ b/os2web_hjemmeside.info.yml @@ -2,10 +2,10 @@ name: 'OS2Web Hjemmeside' type: module description: 'Main module that brings hjemmeside general configuration.' core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^8 || ^9 || ^10 package: 'OS2Web' dependencies: - - ckeditor + - ckeditor5 - easy_breadcrumb - extlink - editor_advanced_link @@ -15,7 +15,14 @@ dependencies: - pathauto - chosen - media + - media_directories + - media_directories_editor + - media_directories_ui - metatag - redirect - textfield_counter - save_edit + - menu_link_content + # os2web + - os2web_borgerdk + diff --git a/os2web_hjemmeside.install b/os2web_hjemmeside.install index 81f3c95..5df4e33 100644 --- a/os2web_hjemmeside.install +++ b/os2web_hjemmeside.install @@ -14,7 +14,8 @@ use Symfony\Component\Yaml\Yaml; * Configuration name. */ function os2web_hjemmeside_read_in_new_config($config_name) { - $path = drupal_get_path('module', 'os2web_hjemmeside'); +// $path = drupal_get_path('module', 'os2web_hjemmeside'); + $path = \Drupal::service('extension.list.module')->getPath('os2web_hjemmeside'); /** @var \Drupal\Core\Config\StorageInterface $active_storage */ $active_storage = \Drupal::service('config.storage'); $active_storage->write($config_name, Yaml::parse(file_get_contents($path . '/config/optional/' . $config_name . '.yml')));