Loading block_class.install +18 −0 Original line number Diff line number Diff line Loading @@ -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(); } config/install/block_class.settings.yml +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 Loading
block_class.install +18 −0 Original line number Diff line number Diff line Loading @@ -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(); }
config/install/block_class.settings.yml +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