protected function SettingsForm::getImportConfigOptions in Entity Share Cron 3.0.x
Helper function.
Return value
string[] An array of import configs.
1 call to SettingsForm::getImportConfigOptions()
- SettingsForm::buildForm in src/
Form/ SettingsForm.php - Form constructor.
File
- src/
Form/ SettingsForm.php, line 288
Class
- SettingsForm
- Module settings form.
Namespace
Drupal\entity_share_cron\FormCode
protected function getImportConfigOptions() {
$import_configs = $this->entityTypeManager
->getStorage('import_config')
->loadMultiple();
$options = [];
foreach ($import_configs as $import_config) {
$options[$import_config
->id()] = $import_config
->label();
}
return $options;
}