public function ImageEffectsPluginManager::getPluginOptions in Image Effects 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffectsPluginManager.php \Drupal\image_effects\Plugin\ImageEffectsPluginManager::getPluginOptions()
- 8 src/Plugin/ImageEffectsPluginManager.php \Drupal\image_effects\Plugin\ImageEffectsPluginManager::getPluginOptions()
Gets a formatted list of available plugins.
Return value
array An array with the plugin ids as keys and the descriptions as values.
File
- src/
Plugin/ ImageEffectsPluginManager.php, line 106
Class
- ImageEffectsPluginManager
- Plugin manager for image_effects plugins.
Namespace
Drupal\image_effects\PluginCode
public function getPluginOptions() {
$options = [];
foreach ($this
->getAvailablePlugins() as $plugin) {
$options[$plugin['id']] = SafeMarkup::format('<b>@title</b> - @description', [
'@title' => $plugin['short_title'],
'@description' => $plugin['help'],
]);
}
return $options;
}