public ImageToolkitManager::getAvailableToolkits()
Gets a list of available toolkits.
array An array with the toolkit names as keys and the descriptions as values.
public function getAvailableToolkits() { // Use plugin system to get list of available toolkits. $toolkits = $this->getDefinitions(); $output = array(); foreach ($toolkits as $id => $definition) { // Only allow modules that aren't marked as unavailable. if (call_user_func($definition['class'] . '::isAvailable')) { $output[$id] = $definition; } } return $output; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!ImageToolkit!ImageToolkitManager.php/function/ImageToolkitManager::getAvailableToolkits/8.1.x