public function LocationInputPluginManager::getInstancesOptions in Search API Location 8
Returns all location input methods as an options list.
Return value
string[] An associative array with all recognized types as keys, mapped to their translated display names.
See also
\Drupal\search_api_location\LocationInput\LocationInputPluginManager::getInstances()
File
- src/
LocationInput/ LocationInputPluginManager.php, line 61
Class
- LocationInputPluginManager
- Defines a plugin manager for Location Inputs.
Namespace
Drupal\search_api_location\LocationInputCode
public function getInstancesOptions() {
$options = [];
foreach ($this
->getDefinitions() as $id => $plugin) {
$options[$id] = $plugin['label'];
}
return $options;
}