public function AnalyticsServiceManager::getDefinitionOptions in Analytics 8
Provides a list of plugins suitable for form options.
Return value
array An array of valid plugin labels, keyed by plugin ID.
File
- src/
AnalyticsServiceManager.php, line 44
Class
- AnalyticsServiceManager
- Provides a plugin manager for analytics items.
Namespace
Drupal\analyticsCode
public function getDefinitionOptions() {
$options = array_map(function ($definition) {
return (string) $definition['label'];
}, $this
->getDefinitions());
natsort($options);
return $options;
}