Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
updated hook update
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed Aug 28, 2024
1 parent 5cc338c commit 02f893e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/tide_site_theming/tide_site_theming.install
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,13 @@ function tide_site_theming_update_8001() {
}

/**
* Add site app icon field.
* Add site app icon and short name fields.
*/
function tide_site_theming_update_10001() {
$configs = [
'field.storage.taxonomy_term.field_short_name' => 'field_storage_config',
'field.storage.taxonomy_term.field_site_app_icon' => 'field_storage_config',
'field.field.taxonomy_term.sites.field_short_name' => 'field_config',
'field.field.taxonomy_term.sites.field_site_app_icon' => 'field_config',
];
module_load_include('inc', 'tide_core', 'includes/helpers');
Expand All @@ -242,6 +244,7 @@ function tide_site_theming_update_10001() {
$config = $config_factory->getEditable('jsonapi_extras.jsonapi_resource_config.taxonomy_term--sites');
$resourcefields_fields = [
'field_site_app_icon',
'field_short_name',
];
$content = $config->get('resourceFields');
foreach ($resourcefields_fields as $field) {
Expand Down

0 comments on commit 02f893e

Please sign in to comment.