You are here

public function LingotekConfigSet::setLastError in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::setLastError()

Assign the set's last sync error in the config metadata table

File

lib/Drupal/lingotek/LingotekConfigSet.php, line 682
Defines LingotekConfigSet.

Class

LingotekConfigSet
A class wrapper for Lingotek-specific behavior on ConfigSets.

Code

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