I’m utilizing Drupal 8 and I’m creating a number of varieties which can be made from a #tree hierarchy.
I’m retrieving Drupal Developer worth of Drupal Developer "first title" from Drupal Developer #tree utilizing Drupal Developer under code and it does not get Drupal Developer worth.
$firstName = $form_state->getValue('userBoxArea')[$counter]['userBox']['nameBox']['firstName'];
Drupal Development Service code of my #tree type is:
$type['userBoxArea' ] = [ '#type' => 'container', '#tree' => TRUE, ]; for($counter = 0; $counter < $rowCount; $counter++){ $type['userBoxArea'][$counter] = [ 'userBox' => [ '#type' => 'container', 'nameBox' => [ '#type' => 'container', 'firstName' => [ '#type' => 'textfield', '#title' => 'Enter your first name', ], ], ], ]; }
Drupal Development Service rowCount pertains to Drupal Developer row in my database. Drupal Development Service course of is to accumulate firstName from Drupal Developer person and people variables will likely be saved inside Drupal Developer database.
I’ve researched articles from Drupal if there’s a limitation of Drupal Developer #tree containers and located nothing about it.
Any options if I’m lacking one thing. How do you retrieve Drupal Developer worth of "firstName"?
Thanks prematurely.