protected function WebformScheduledTaskForm::pluginManagerOptionsList in Webform Scheduled Tasks 8.2
Get an options list from a plugin manager.
Parameters
string $manager: The ID of the plugin manager to generate an options list for.
Return value
array An array for options for a select list.
1 call to WebformScheduledTaskForm::pluginManagerOptionsList()
- WebformScheduledTaskForm::form in src/
Form/ WebformScheduledTaskForm.php - Gets the actual form array to be built.
File
- src/
Form/ WebformScheduledTaskForm.php, line 281
Class
- WebformScheduledTaskForm
- The scheduled task form.
Namespace
Drupal\webform_scheduled_tasks\FormCode
protected function pluginManagerOptionsList($manager) {
/** @var \Drupal\Core\Plugin\DefaultPluginManager $manager */
$manager = \Drupal::service($manager);
return array_column($manager
->getDefinitions(), 'label', 'id');
}