You are here

public function TestTaskWorker::success in Search API 8

Handles a task event successfully.

Parameters

\Drupal\search_api\Task\TaskEvent $event: The task event.

File

tests/search_api_test_tasks/src/TestTaskWorker.php, line 56

Class

TestTaskWorker
Provides a task worker for testing purposes.

Namespace

Drupal\search_api_test_tasks

Code

public function success(TaskEvent $event) {
  $this
    ->logEvent($event);
  $event
    ->stopPropagation();
}