You are here

public function TaskEvent::getTask in Search API 8

Retrieves the executed task.

Return value

\Drupal\search_api\Task\TaskInterface The task being executed.

File

src/Task/TaskEvent.php, line 50

Class

TaskEvent
Represents an event that was fired to execute a pending task.

Namespace

Drupal\search_api\Task

Code

public function getTask() {
  return $this->task;
}