public function LocalTaskItem::getTask

Returns the translation task.

Return value

\Drupal\tmgmt_local\Entity\LocalTask The LocalTask.

Overrides LocalTaskItemInterface::getTask

File

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

Class

LocalTaskItem
Entity class for the local task item entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function getTask() {
  return $this
    ->get('tltid')->entity;
}