From bd745652c3f29376cc0212f58a2370c9f1a0c8c4 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Mon, 16 Dec 2024 19:08:42 +1100 Subject: [PATCH] Lint fix. --- tide_core.install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tide_core.install b/tide_core.install index d436357e..79171eb9 100644 --- a/tide_core.install +++ b/tide_core.install @@ -335,20 +335,20 @@ function tide_core_update_10011() { 'field_landing_page_header', ]; $new_component = 'data_driven_component'; - + foreach ($fields_to_update as $field_name) { $field_config = FieldConfig::loadByName('node', 'landing_page', $field_name); - + if ($field_config) { // Get the current handler settings. $handler_settings = $field_config->getSetting('handler_settings'); - + // Ensure 'target_bundles' exists in handler settings. if (isset($handler_settings['target_bundles'])) { // Add the new component if it does not already exist. if (!array_key_exists($new_component, $handler_settings['target_bundles'])) { $handler_settings['target_bundles'][$new_component] = $new_component; - + // Update the field configuration with the new handler settings. $field_config->setSetting('handler_settings', $handler_settings); $field_config->save();