class OptGroup
Provides helpers for HTML option groups.
Hierarchy
- class \Drupal\Core\Form\OptGroup
File
- core/lib/Drupal/Core/Form/OptGroup.php, line 8
Namespace
Drupal\Core\FormMembers
Name | Modifiers | Type | Description |
---|---|---|---|
OptGroup::doFlattenOptions | protected static | function | Iterates over an array building a flat array with duplicate keys removed. |
OptGroup::flattenOptions | public static | function | Allows PHP array processing of multiple select options with the same value. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!OptGroup.php/class/OptGroup/8.1.x