You are here

function search_api_update_8107 in Search API 8

Add a unique index to the task entity type's storage.

File

./search_api.install, line 338
Install, update and uninstall functions for the Search API module.

Code

function search_api_update_8107() {
  $manager = \Drupal::entityDefinitionUpdateManager();
  $entity_type = $manager
    ->getEntityType('search_api_task');
  $entity_type
    ->setHandlerClass('storage_schema', TaskStorageSchema::class);
  $manager
    ->updateEntityType($entity_type);
}