You are here

public function LingotekConfigSet::setUploadError in Lingotek Translation 7.7

Assign the set's last upload_error in the config metadata table

File

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

Class

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

Code

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