Commit 419c8b3e authored by renatog's avatar renatog Committed by renatog
Browse files

Issue #3271123 by RenatoG: Enable multiple class textfield by default

parent 7232b92b
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -146,3 +146,21 @@ function block_class_update_20005() {
  $config->save();

}

/**
 * Implements hook_update_N().
 *
 * Set multiple textfields by default.
 */
function block_class_update_20006() {

  // Get the config object.
  $config = \Drupal::configFactory()->getEditable('block_class.settings');

  // Set the fieldtype with "multiple_textfields" by default.
  $config->set('field_type', 'multiple_textfields');

  // Save.
  $config->save();

}
+3 −2
Original line number Diff line number Diff line
default_case: 'standard'
field_type: 'textfield'
field_type: 'multiple_textfields'
allow_only_letters_and_numbers: 0
enable_attributes: true
field_type_attributes: 'textarea'
maxlength_block_class_field: 255
maxlength_attributes: FALSE
filter_html_clean_css_identifier: FALSE
 No newline at end of file