public function LocalTask::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/ LocalTask.php, line 173
Class
- LocalTask
- Entity class for the local task entity.
Namespace
Drupal\tmgmt_local\EntityCode
public function label() {
if (!$this
->get('title')->value) {
return $this
->getJob()
->label();
}
else {
return $this
->get('title')->value;
}
}