Resolve #3389200 "Field selection breaks"
Closes #3389200
Merge request reports
Activity
added 6 commits
-
b4ef8308...0f1bc004 - 4 commits from branch
project:11.x
- 7cff8926 - new flow prototype
- a76e8eec - css build
-
b4ef8308...0f1bc004 - 4 commits from branch
added 2 commits
- Resolved by Ben Mullins
- Resolved by Ben Mullins
- Resolved by Ben Mullins
242 259 ], 243 260 ], 244 261 ], 245 'radio' => [ 246 '#type' => 'radio', 247 '#title' => $category_info->getLabel(), 248 '#parents' => ['new_storage_type'], 249 '#title_display' => 'before', 250 '#description_display' => 'before', 251 '#theme_wrappers' => ['form_element__new_storage_type'], 252 // If it is a category, set return value as the category label. 253 // Otherwise, set it as the field type id. 254 '#return_value' => $display_as_group ? $field_type['category'] : $field_type['unique_identifier'], 262 'words' => [ changed this line in version 12 of the diff
121 122 /** 122 123 * {@inheritdoc} 123 124 */ 124 public function buildForm(array $form, FormStateInterface $form_state, $entity_type_id = NULL, $bundle = NULL) { 125 public function buildForm(array $form, FormStateInterface $form_state, $entity_type_id = NULL, $bundle = NULL, $new_storage_type = NULL, $display_as_group = FALSE) { 125 126 if (!$form_state->get('entity_type_id')) { 126 127 $form_state->set('entity_type_id', $entity_type_id); 127 128 } 128 129 if (!$form_state->get('bundle')) { 129 130 $form_state->set('bundle', $bundle); 130 131 } 132 if (!$form_state->getValue('new_storage_type') && $form_state->getValue('new_storage_type') !== 'Back') { I see, it's being set in !5869 (diffs). I wonder if we should set a constant for this? It would make this less confusing.
changed this line in version 15 of the diff
Please register or sign in to reply