public function Changes::getLongpoll in Replication 8
Same name and namespace in other branches
- 8.2 src/Changes/Changes.php \Drupal\replication\Changes\Changes::getLongpoll()
Return the changes with a 'longpoll'.
We can implement this method later.
Overrides ChangesInterface::getLongpoll
See also
https://www.drupal.org/node/2282295
File
- src/
Changes/ Changes.php, line 251
Class
Namespace
Drupal\replication\ChangesCode
public function getLongpoll() {
$no_change = TRUE;
do {
$change = $this->sequenceIndex
->useWorkspace($this->workspaceId)
->getRange($this->since, NULL);
$no_change = empty($change) ? TRUE : FALSE;
} while ($no_change);
return $change;
}