You are here

public function StreamingExpressionBuilder::_checkpoint in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_checkpoint()

Formats a checkpoint parameter for topic() or _topic().

The checkpoint name gets suffixed by targeted index and site hash to avoid collisions.

Parameters

string $checkpoint:

Return value

string Formatted checkpoint parameter.

File

src/Utility/StreamingExpressionBuilder.php, line 752

Class

StreamingExpressionBuilder
Provides methods for creating streaming expressions targeting a given index.

Namespace

Drupal\search_api_solr\Utility

Code

public function _checkpoint($checkpoint) {
  return 'id="' . Utility::formatCheckpointId($checkpoint, $this->targetedIndexId, $this->targetedSiteHash) . '"';
}