You are here

public function LingotekConfigChunk::setLastError in Lingotek Translation 7.5

Set the chunk's last error in the config metadata table

File

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

Class

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

Code

public function setLastError($errors) {
  $this
    ->setMetadataValue('last_sync_error', substr($errors, 0, 255));
  return $this;
}