You are here

public function LocalTaskItem::getTask in Translation Management Tool 8

Returns the translation task.

Return value

\Drupal\tmgmt_local\Entity\LocalTask The LocalTask.

Overrides LocalTaskItemInterface::getTask

2 calls to LocalTaskItem::getTask()
LocalTaskItem::getData in translators/tmgmt_local/src/Entity/LocalTaskItem.php
Gets translation data.
LocalTaskItem::preSave in translators/tmgmt_local/src/Entity/LocalTaskItem.php
Acts on an entity before the presave hook is invoked.

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;
}