You are here

public static function ContentEntityTaskManager::getSubscribedEvents in Search API 8

File

src/Plugin/search_api/datasource/ContentEntityTaskManager.php, line 57

Class

ContentEntityTaskManager
Provides a service for managing pending tracking tasks for datasources.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public static function getSubscribedEvents() {
  $events['search_api.task.' . self::INSERT_ITEMS_TASK_TYPE][] = [
    'processEvent',
  ];
  $events['search_api.task.' . self::DELETE_ITEMS_TASK_TYPE][] = [
    'processEvent',
  ];
  return $events;
}