public function ThrobberManager::getThrobberOptionList in Ajax loader 8
Get an options list suitable for form elements for throbber selection.
Return value
array An array of options keyed by plugin ID with label values.
Overrides ThrobberManagerInterface::getThrobberOptionList
File
- src/
ThrobberManager.php, line 41
Class
- ThrobberManager
- Gathers the throbber plugins.
Namespace
Drupal\ajax_loaderCode
public function getThrobberOptionList() {
$options = [];
foreach ($this
->getDefinitions() as $definition) {
$options[$definition['id']] = $definition['label'];
}
return $options;
}