You are here

protected function LingotekConfigChunk::getMaxLid in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getMaxLid()
  2. 7.5 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getMaxLid()
1 call to LingotekConfigChunk::getMaxLid()
LingotekConfigChunk::__construct in lib/Drupal/lingotek/LingotekConfigChunk.php
Constructor.

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 360
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

protected function getMaxLid() {
  if ($this->chunk_id) {
    return self::maxLid($this->chunk_id);
  }
  return intval(key($this->source_data) / $this->chunk_size) * $this->chunk_size + $this->chunk_size;
}