protected function AuthorizationProfileForm::getProviderOptions in Authorization 8
Returns all available Provider plugins, as an options list.
Return value
string[] An associative array mapping Provider plugin IDs to their (HTML-escaped) labels.
2 calls to AuthorizationProfileForm::getProviderOptions()
- AuthorizationProfileForm::buildEntityForm in src/
Form/ AuthorizationProfileForm.php - Builds the form for the basic server properties.
- AuthorizationProfileForm::buildProviderConfigForm in src/
Form/ AuthorizationProfileForm.php - Builds the provider-specific configuration form.
File
- src/
Form/ AuthorizationProfileForm.php, line 246
Class
- AuthorizationProfileForm
- Authorization profile form.
Namespace
Drupal\authorization\FormCode
protected function getProviderOptions() : array {
$options = [];
foreach ($this
->getProviderPluginManager()
->getDefinitions() as $plugin_id => $plugin_definition) {
$options[$plugin_id] = Html::escape($plugin_definition['label']);
}
return $options;
}