/** * {@inheritdoc} */ public function label($langcode = NULL) { if ($plugin = $this->getSourcePlugin()) { $label = $plugin->getLabel($this); } else { $label = parent::Label(); } if (strlen($label) > Job::LABEL_MAX_LENGTH) { $label = Unicode::truncate($label, Job::LABEL_MAX_LENGTH, TRUE); } return $label; }