Skip to content

Commit

Permalink
Merge pull request #437 from City-of-Helsinki/UHF-7882
Browse files Browse the repository at this point in the history
UHF-7882: Removed token_filter and aet modules in preparation for 3.x release
  • Loading branch information
tuutti authored Feb 14, 2023
2 parents df6ab7d + cdaf9f1 commit 965bda1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dependencies:
- editor
- linkit
- media
- token_filter
name: HTML
format: full_html
weight: 0
Expand Down Expand Up @@ -84,13 +83,6 @@ filters:
default_view_mode: default
allowed_view_modes: { }
allowed_media_types: { }
token_filter:
id: token_filter
provider: token_filter
status: true
weight: -47
settings:
replace_empty: '1'
helfi_link_converter:
id: helfi_link_converter
provider: helfi_api_base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dependencies:
- editor
- linkit
- media
- token_filter
name: Minimal
format: minimal
weight: 0
Expand Down Expand Up @@ -84,13 +83,6 @@ filters:
default_view_mode: default
allowed_view_modes: { }
allowed_media_types: { }
token_filter:
id: token_filter
provider: token_filter
status: true
weight: -43
settings:
replace_empty: '1'
helfi_link_converter:
id: helfi_link_converter
provider: helfi_api_base
Expand Down
1 change: 0 additions & 1 deletion helfi_features/helfi_content/helfi_content.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ dependencies:
- 'select2:select2'
- 'select2_icon:select2_icon'
- 'social_media:social_media'
- 'token_filter:token_filter'
- 'update_helper:update_helper'
package: HELfi
'interface translation project': helfi_content
Expand Down
24 changes: 24 additions & 0 deletions helfi_features/helfi_content/helfi_content.install
Original file line number Diff line number Diff line change
Expand Up @@ -1003,3 +1003,27 @@ function helfi_content_update_9039() {
// Output logged messages to related channel of update execution.
return $updateHelper->logger()->output();
}

/**
* Uninstall token_filter and aet modules.
*/
function helfi_content_update_9040() : void {
if (\Drupal::moduleHandler()->moduleExists('token_filter')) {
$formatters = \Drupal::entityTypeManager()
->getStorage('filter_format')
->loadMultiple();

/** @var \Drupal\filter\Entity\FilterFormat $format */
foreach ($formatters as $format) {
$format->setFilterConfig('token_filter', [
'status' => FALSE,
])
->save();
}

Drupal::service('module_installer')->uninstall([
'token_filter',
'aet',
]);
}
}

0 comments on commit 965bda1

Please sign in to comment.