Return a title for this job item.
string|false: The label of the job item entity.
Overrides SourcePluginBase::getLabel
public function getLabel(JobItemInterface $job_item) {
if ($locale_object = $this
->getLocaleObject($job_item)) {
if ($locale_object->origin == 'source') {
$label = $locale_object->source;
}
else {
$label = $locale_object->translation;
}
return Unicode::truncate(strip_tags($label), 30, FALSE, TRUE);
}
}