You are here

public function StreamingExpressionBuilder::_checkpoint in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 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) . '"';
}