In config/bootstrap_barrio.schema.yml you have entries for all the regions e.g.
bootstrap_barrio_region_clean_top_header:
type: integer
label: 'Clean wrapper for Top header region'
bootstrap_barrio_region_class_top_header:
type: string
label: 'Classes for Top header region'
Also in bootstrap_barrio_theme you have:
/**
* Implements hook_preprocess_HOOK() for region.html.twig.
*/
function bootstrap_barrio_preprocess_region(&$variables) {
$nowrap = [
'breadcrumb',
'highlighted',
'content',
'primary_menu',
'header',
'sidebar_first',
'sidebar_second',
];
if (theme_get_setting('bootstrap_barrio_region_class_' . $variables['elements']['#region']) !== NULL) {
$variables['attributes']['class'][] = theme_get_setting('bootstrap_barrio_region_class_' . $variables['elements']['#region']);
}
elseif (!in_array($variables['elements']['#region'], $nowrap)) {
$variables['attributes']['class'][] = 'row';
}
}
and
/**
* Implements hook_theme_suggestions_HOOK_alter() for region templates.
*/
function bootstrap_barrio_theme_suggestions_region_alter(array &$suggestions, array $variables) {
$nowrap = [
'breadcrumb',
'highlighted',
'content',
'primary_menu',
'header',
'sidebar_first',
'sidebar_second',
];
if (theme_get_setting('bootstrap_barrio_region_clean_' . $variables['elements']['#region']) !== NULL) {
$region_clean = theme_get_setting('bootstrap_barrio_region_clean_' . $variables['elements']['#region']);
}
else {
$region_clean = in_array($variables['elements']['#region'], $nowrap);
}
if ($region_clean) {
$suggestions[] = 'region__nowrap';
}
}
Please note use if theme_get_setting()
Unlike other variables defined in the schema, you do not have default values defined in the config. From what I can tell the following config is missing from config/install/bootstrap_barrio.settings.yml
# Regions.
# ----------------------------
bootstrap_barrio_region_clean_top_header: ''
bootstrap_barrio_region_class_top_header: ''
bootstrap_barrio_region_clean_top_header_form: ''
bootstrap_barrio_region_class_top_header_form: ''
bootstrap_barrio_region_clean_header: ''
bootstrap_barrio_region_class_header: ''
bootstrap_barrio_region_clean_header_form: ''
bootstrap_barrio_region_class_header_form: ''
bootstrap_barrio_region_clean_primary_menu: ''
bootstrap_barrio_region_class_primary_menu: ''
bootstrap_barrio_region_clean_secondary_menu: ''
bootstrap_barrio_region_class_secondary_menu: ''
bootstrap_barrio_region_clean_page_top: ''
bootstrap_barrio_region_class_page_top: ''
bootstrap_barrio_region_clean_page_bottom: ''
bootstrap_barrio_region_class_page_bottom: ''
bootstrap_barrio_region_clean_highlighted: ''
bootstrap_barrio_region_class_highlighted: ''
bootstrap_barrio_region_clean_featured_top: ''
bootstrap_barrio_region_class_featured_top: ''
bootstrap_barrio_region_clean_breadcrumb: ''
bootstrap_barrio_region_class_breadcrumb: ''
bootstrap_barrio_region_clean_content: ''
bootstrap_barrio_region_class_content: ''
bootstrap_barrio_region_clean_sidebar_first: ''
bootstrap_barrio_region_class_sidebar_first: ''
bootstrap_barrio_region_clean_sidebar_second: ''
bootstrap_barrio_region_class_sidebar_second: ''
bootstrap_barrio_region_clean_featured_bottom_first: ''
bootstrap_barrio_region_class_featured_bottom_first: ''
bootstrap_barrio_region_clean_featured_bottom_second: ''
bootstrap_barrio_region_class_featured_bottom_second: ''
bootstrap_barrio_region_clean_featured_bottom_third: ''
bootstrap_barrio_region_class_featured_bottom_third: ''
bootstrap_barrio_region_clean_footer_first: ''
bootstrap_barrio_region_class_footer_first: ''
bootstrap_barrio_region_clean_footer_second: ''
bootstrap_barrio_region_class_footer_second: ''
bootstrap_barrio_region_clean_footer_third: ''
bootstrap_barrio_region_class_footer_third: ''
bootstrap_barrio_region_clean_footer_fourth: ''
bootstrap_barrio_region_class_footer_fourth: ''
bootstrap_barrio_region_clean_footer_fifth: ''
bootstrap_barrio_region_class_footer_fifth: ''