protected function SearchApiStatsBlock::getServer in Search API Stats 8
Retrieve the index and use it to get the server ID.
Return value
string The machine name of the Search API server.
1 call to SearchApiStatsBlock::getServer()
- SearchApiStatsBlock::getStats in modules/
search_api_stats_block/ src/ Plugin/ Block/ SearchApiStatsBlock.php - Retrieve keywords, num values from database.
File
- modules/
search_api_stats_block/ src/ Plugin/ Block/ SearchApiStatsBlock.php, line 115
Class
- SearchApiStatsBlock
- Provides a 'SearchApiStatsBlock' block.
Namespace
Drupal\search_api_stats_block\Plugin\BlockCode
protected function getServer() {
$result = '';
$index = $this
->getIndex();
if (!empty($index)) {
$result = $index
->get('server');
}
return $result;
}