You are here

public function TrackerPluginManager::getOptionsList in Search API 8

Retrieves an options list of available trackers.

Return value

string[] An associative array mapping the IDs of all available tracker plugins to their labels.

File

src/Tracker/TrackerPluginManager.php, line 51

Class

TrackerPluginManager
Manages tracker plugins.

Namespace

Drupal\search_api\Tracker

Code

public function getOptionsList() {
  $options = [];
  foreach ($this
    ->getDefinitions() as $plugin_id => $plugin_definition) {
    $options[$plugin_id] = Utility::escapeHtml($plugin_definition['label']);
  }
  return $options;
}