In Drupal 8 all collapsible fieldsets have been replaced with HTML5 details elements:

$form['advanced'] = array(
  '#type' => 'details',
  '#title' => t('Advanced settings'),
  '#description' => t('Lorem ipsum.'),
  '#open' => TRUE, // Controls the HTML5 'open' attribute. Defaults to FALSE.
);

There's also a Number class for numbered form fields: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Nu...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpp created an issue. See original summary.

mpp’s picture

Assigned: mpp » Unassigned
Status: Needs work » Needs review
FileSize
2.22 KB

Updated all fieldsets to settings elements and changed the port textfield into a number field.

estoyausente’s picture

Status: Needs review » Reviewed & tested by the community

Great!

Patch run correctly.

  • wundo committed 61bfd8d on 8.x-1.x authored by mpp
    Issue #2671070 by mpp, estoyausente: Drupal 8 UI improvement
    
wundo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.