I have created a block in which i have kept a setting page settings.php. In this page how can i have a dropdown containing optgroups in dropdown. I found a way to have simple dropdown using below sample code:-
$settings->add(new admin_setting_configselect('NAME', TEXT, DESCRIPTION, 'yes', $options));
Is it possible to create a dropdown containg optgroups using such standard admin setting?