Skip to content

Commit

Permalink
Merge 324ae21 into 0008485
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima authored Jan 19, 2024
2 parents 0008485 + 324ae21 commit 6dcb358
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/helfi_calculator/helfi_calculator.module
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ use Drupal\helfi_platform_config\DTO\ParagraphTypeCollection;
* - view_mode: View mode; e.g., 'full', 'teaser'...
*/
function helfi_calculator_preprocess_paragraph__calculator(array &$variables) {
$config = Drupal::config('helfi_calculator.settings');
$calculator_settings = $config->get('calculators');
// Get calculator data without applying module overrides for the calculators.
$config = \Drupal::configFactory()->getEditable('helfi_calculator.settings');
$calculator_settings = $config->getOriginal('calculators', FALSE);
$active = [];
foreach ($calculator_settings as $key => $value) {
$variables['#attached']['drupalSettings'][$key] = $value['json'];
Expand Down

0 comments on commit 6dcb358

Please sign in to comment.