Skip to content
Snippets Groups Projects

Resolve #3389200 "Field selection breaks"

Closes #3389200

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 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' => [
  • omkar podey added 1 commit

    added 1 commit

    Compare with previous version

  • omkar podey added 1 commit

    added 1 commit

    Compare with previous version

  • omkar podey added 1 commit

    added 1 commit

    Compare with previous version

  • 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') {
  • omkar podey added 1 commit

    added 1 commit

    Compare with previous version

  • omkar podey added 1 commit
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading