public function ImceSettingsForm::getProfileOptions in IMCE 8.2
Same name and namespace in other branches
- 8 src/Form/ImceSettingsForm.php \Drupal\imce\Form\ImceSettingsForm::getProfileOptions()
Get the profile options.
Return value
array The profile options.
1 call to ImceSettingsForm::getProfileOptions()
- ImceSettingsForm::buildRowsProfilesTables in src/
Form/ ImceSettingsForm.php - Create tables profiles rows.
File
- src/
Form/ ImceSettingsForm.php, line 130
Class
- ImceSettingsForm
- Imce settings form.
Namespace
Drupal\imce\FormCode
public function getProfileOptions() {
// Prepare profile options.
$options = [
'' => '-' . $this
->t('None') . '-',
];
foreach ($this->entityTypeManager
->getStorage('imce_profile')
->loadMultiple() as $pid => $profile) {
$options[$pid] = $profile
->label();
}
return $options;
}