You are here

public function LocalTaskItem::label in Translation Management Tool 8

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides ContentEntityBase::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');
}