public function FeedImportSQLHashes::protect in Feed Import 8
Protects a hash for updates
Parameters
integer $id: Hash id
Overrides FeedImportHashManager::protect
File
- feed_import_base/
src/ FeedImportSQLHashes.php, line 162
Class
- FeedImportSQLHashes
- This class implements SQL hash storage
Namespace
Drupal\feed_import_baseCode
public function protect($id) {
$this->protectIds[] = $id;
if (++$this->toProtect == $this->updateChunkSize) {
$this
->_update($this->protectIds, static::MARK_PROTECTED);
$this->toProtect = 0;
}
}