You are here

public function LingotekEntity::setLastError in Lingotek Translation 7.7

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

Set the entity's last error in the entity metadata table

File

lib/Drupal/lingotek/LingotekEntity.php, line 448
Defines LingotekEntity.

Class

LingotekEntity
A class wrapper for Lingotek-specific behavior on nodes.

Code

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