Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4e5e58a6 authored by escuriola's avatar escuriola
Browse files

OEL-1367: Adapt schema to region and input name and add a post_update.

parent 651f379b
No related branches found
No related tags found
2 merge requests!157OEL-1668: Update epic list pages.,!136OEL-1367: New Look & Feel for search form in search page and remove theming from block config form.
......@@ -18,7 +18,9 @@ settings:
provider: oe_whitelabel_search
form:
action: '#'
layout: navigation_right
region: navigation_right
input:
name: text
view_options:
enable_autocomplete: false
id: null
......
......@@ -9,9 +9,16 @@ block.settings.whitelabel_search_block:
action:
type: string
label: Action
layout:
region:
type: string
label: Region
input:
type: mapping
label: Input
mapping:
name:
type: string
label: Name
view_options:
type: mapping
label: View Options
......
<?php
/**
* @file
* OpenEuropa Showcase post updates.
*/
declare(strict_types=1);
use Drupal\oe_bootstrap_theme\ConfigImporter;
/**
* Set the updated values to the search form block.
*/
function oe_whitelabel_search_post_update_00001(&$sandbox) {
$configs = [
'block.block.oe_whitelabel_search_form',
];
ConfigImporter::importMultiple('module', 'oe_whitelabel_search', '/config/post_updates/00001', $configs);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment