You are here

function profile_update_8008 in Profile 8

Adds a storage schema for profile that adds a multi-column index.

File

./profile.install, line 157
Install, update and uninstall functions for the profile module.

Code

function profile_update_8008() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $entity_type = $definition_update_manager
    ->getEntityType('profile');
  $entity_type
    ->setHandlerClass('storage_schema', \Drupal\profile\ProfileStorageSchema::class);
  $definition_update_manager
    ->updateEntityType($entity_type);
}