Skip to content

Commit

Permalink
added storage file (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed Sep 10, 2024
1 parent ebb399b commit 2fa8653
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ settings:
-
value: profile
label: Profile
-
value: highlight
label: Highlight
allowed_values_function: ''
module: options
locked: false
Expand Down
13 changes: 13 additions & 0 deletions tide_landing_page.install
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,16 @@ function tide_landing_page_update_10104() {
$config_sync->set('settings.handler_settings.target_bundles_drag_drop.' . $paragraph_type_id . '.weight', $new_weight)->save();
}
}

/**
* Adds highlight option new value to to field_promo_card_display_style.
*/
function tide_landing_page_update_10105() {
$field_storage = FieldStorageConfig::loadByName('paragraph', 'field_promo_card_display_style');
$new_field = $field_storage->getSettings()['allowed_values'];
$new_field['highlight'] = 'Highlight';
$field_storage->setSettings([
'allowed_values' => $new_field,
]);
$field_storage->save();
}

0 comments on commit 2fa8653

Please sign in to comment.