public function SchedulerManager::getDevelGenerateFormIds in Scheduler 2.x
Gets the supported Devel Generate form IDs.
Return value
array List of form IDs used by Devel Generate, keyed by entity type.
File
- src/
SchedulerManager.php, line 1015
Class
- SchedulerManager
- Defines a scheduler manager.
Namespace
Drupal\schedulerCode
public function getDevelGenerateFormIds() {
$plugins = $this
->getPlugins();
$form_ids = [];
foreach ($plugins as $entityTypeId => $plugin) {
// The devel_generate form id is optional so only save if a value exists.
// Use entity type as key so we can get back from form_id to entity.
if ($form_id = $plugin
->develGenerateForm()) {
$form_ids[$entityTypeId] = $form_id;
}
}
return $form_ids;
}