You are here

public function TaskEvent::__construct in Search API 8

Constructs a TaskEvent object.

Parameters

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

File

src/Task/TaskEvent.php, line 40

Class

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

Namespace

Drupal\search_api\Task

Code

public function __construct(TaskInterface $task) {
  $this->task = $task;
}