Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New TPR service list component with search #407

Merged
merged 22 commits into from
Mar 1, 2023
Merged
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0f0afe7
PLAENH-185 Create service list search paragraph type
dragos-dumi-ibm Nov 3, 2022
c680ea4
PLAENH-185 - service list views search and search teaser config
ArseneClaudiu Nov 7, 2022
ccb7031
Merge branch 'City-of-Helsinki:main' into main
dragos-dumi-ibm Nov 8, 2022
8d1aeda
Merge branch 'City-of-Helsinki:main' into main
dragos-dumi-ibm Nov 8, 2022
eeccdea
added placeholder and title with translations for service list search…
dragos-dumi-ibm Nov 9, 2022
c0cb11e
updated config (#6)
ArseneClaudiu Nov 10, 2022
c9a489b
add translations for service channel types formatter
ArseneClaudiu Nov 10, 2022
3cab6e3
Merge branch 'City-of-Helsinki:main' into main
dragos-dumi-ibm Nov 25, 2022
ca91e7d
Merge branch 'main' into main
tuutti Nov 29, 2022
b191aef
Removed search service list filter published or admin, as it was caus…
dragos-dumi-ibm Dec 2, 2022
90c6cc3
Merge branch 'main' of github.com:dragos-dumi-ibm/drupal-helfi-platfo…
dragos-dumi-ibm Dec 2, 2022
58e1a35
Merge branch 'City-of-Helsinki:main' into main
dragos-dumi-ibm Dec 14, 2022
bf71fae
Merge branch 'main' of github.com:City-of-Helsinki/drupal-helfi-platf…
dragos-dumi-ibm Jan 4, 2023
b2080f4
Rename tpr search block machine name
dragos-dumi-ibm Jan 9, 2023
f360f58
added name:override field in view
oviag Feb 6, 2023
a2f8922
removed config uuid
oviag Feb 6, 2023
455fcfe
change service id field label and added help text and translations'
oviag Feb 7, 2023
450d2e7
Merge pull request #9 from dragos-dumi-ibm/PLAENH-583-rename-service-id
oviag Feb 7, 2023
617196f
removed config uuid'
oviag Feb 7, 2023
0b7865a
Merge branch 'City-of-Helsinki:main' into main
dragos-dumi-ibm Feb 7, 2023
468754e
Merge branch 'City-of-Helsinki:main' into main
dragos-dumi-ibm Feb 7, 2023
79e2112
Merge branch 'main' of github.com:City-of-Helsinki/drupal-helfi-platf…
oviag Feb 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions helfi_features/helfi_content/helfi_content.install
Original file line number Diff line number Diff line change
@@ -945,9 +945,40 @@ function helfi_content_update_9037() {
}

/**
* Enable service_list_search paragraph type on content region in landing page.
* Removes without image and description design from list of links.
*/
function helfi_content_update_9038() {
$config_factory = \Drupal::configFactory();

$links_designs = $config_factory->getEditable('field.storage.paragraph.field_list_of_links_design');
$links_designs_data = $links_designs->getRawData();

foreach ($links_designs_data['settings']['allowed_values'] as $key => $allowed_value) {
if (in_array('without-image-desc', $allowed_value)) {
unset($links_designs_data['settings']['allowed_values'][$key]);
}
}

$links_designs_data['settings']['allowed_values'] = array_values($links_designs_data['settings']['allowed_values']);

$links_designs->setData($links_designs_data)->save(TRUE);

// Update translations for list of links desgin.
$configTranslationLocation = dirname(__FILE__) . '/config/language/';

$configurations = [
'field.storage.paragraph.field_list_of_links_design',
];

foreach ($configurations as $configuration) {
ConfigHelper::installNewConfigTranslation($configTranslationLocation, $configuration);
}
}

/**
* Enable service_list_search paragraph type on content region in landing page.
*/
function helfi_content_update_9039() {
// Enable the 'Hide sidebar navigation from this page' to unit and service.
/** @var \Drupal\update_helper\Updater $updateHelper */
$updateHelper = \Drupal::service('update_helper.updater');
@@ -958,4 +989,3 @@ function helfi_content_update_9038() {
// Output logged messages to related channel of update execution.
return $updateHelper->logger()->output();
}