File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
web/themes/contrib/civictheme Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -867,8 +867,10 @@ function civictheme_post_update_update_editor_allowed_field(): string {
867867
868868/**
869869 * Add civictheme_fast_fact_card paragraph type and enable it for manual list.
870+ *
871+ * @SuppressWarnings(PHPMD.StaticAccess)
870872 */
871- function civictheme_post_update_add_fast_fact_card_paragraph ( array & $ sandbox ): string {
873+ function civictheme_post_update_add_fast_fact_card_paragraph_type ( ): string {
872874 $ new_configs = [
873875 // Paragraph type definition.
874876 'paragraphs.paragraphs_type.civictheme_fast_fact_card ' => 'paragraphs_type ' ,
@@ -886,8 +888,7 @@ function civictheme_post_update_add_fast_fact_card_paragraph(array &$sandbox): s
886888
887889 // Enable civictheme_fast_fact_card for civictheme_manual_list.
888890 $ field_config_name = 'field.field.paragraph.civictheme_manual_list.field_c_p_list_items ' ;
889- $ config_factory = \Drupal::configFactory ();
890- $ field_config = $ config_factory ->getEditable ($ field_config_name );
891+ $ field_config = \Drupal::configFactory ()->getEditable ($ field_config_name );
891892
892893 if (!$ field_config ->isNew ()) {
893894 $ handler_settings = $ field_config ->get ('settings.handler_settings ' ) ?: [];
You can’t perform that action at this time.
0 commit comments