Programmatically set paragraph field config value, based on configuration settings
How to programmatically set a paragraph field config value. /** * AttachField function implementation. */ public static function attachField($bundle, $flag) { // Field field_gc_coordinates is already created at module install. // Now attach this field to the bundle as per the configuration settings. $field = FieldConfig::loadByName('node', $bundle, 'field_gc_coordinates'); // Default field setting form for paragraph. $field_settings = [ 'type' => 'entity_reference_paragraphs', 'weight' => '4', 'settings' => [ 'title' => 'Paragraph', 'title_plural' => 'Paragraphs', 'edit_mode' => 'open', 'add_mode' => 'dropdown', 'form_display_mode' => 'default', 'default_paragraph_type' => '',...