Skip to content
Snippets Groups Projects
Commit 2471a377 authored by renatog's avatar renatog Committed by renatog
Browse files

Issue #3272640 by RenatoG: Implement a hook update to set the default value...

Issue #3272640 by RenatoG: Implement a hook update to set the default value for qty of attributes per block by default in sites that is currently using
parent ee8bad5d
No related branches found
No related tags found
10 merge requests!62Issue #3272848 by RenatoG: When the error appear the field is hidden and the...,!59Issue #3497768: Click JavaScript to close details causes modals to scroll unnecessarily,!35Issue #3366420: \Drupal calls should be avoided in classes,!34Issue #3366420: \Drupal calls should be avoided in classes,!29Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!28Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!23Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!22Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!20Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!7Issue #3320529 by justcaldwell: block_classes_stored setting only retains classes from most recently saved block
......@@ -219,3 +219,19 @@ function block_class_update_20010() {
$config->save();
}
/**
* Set the settings "qty of attributes per block" to 10 by default.
*/
function block_class_update_20011() {
// Get the config object.
$config = \Drupal::configFactory()->getEditable('block_class.settings');
// Set the settings.
$config->set('qty_attributes_per_block', 10);
// Save.
$config->save();
}
......@@ -5,6 +5,7 @@ field_type: 'multiple_textfields'
qty_classes_per_block: 10
enable_attributes: true
maxlength_block_class_field: 255
qty_attributes_per_block: 10
maxlength_attributes: FALSE
items_per_page: 50
filter_html_clean_css_identifier: FALSE
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment