public function LocalTaskItem::label

File

translators/tmgmt_local/src/Entity/LocalTaskItem.php, line 117

Class

LocalTaskItem
Entity class for the local task item entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function label() {
  if ($job_item = $this
    ->getJobItem()) {
    return $job_item
      ->label();
  }
  return t('Missing job item');
}