You are here

function entityqueue_update_8003 in Entityqueue 8

Update the definition of the Entity Subqueue entity type.

File

./entityqueue.install, line 53
Install, update and uninstall functions for the Entityqueue module.

Code

function entityqueue_update_8003() {

  /** @var \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entity_repository */
  $entity_repository = \Drupal::service('entity.last_installed_schema.repository');
  $entity_type = $entity_repository
    ->getLastInstalledDefinition('entity_subqueue');
  $entity_type
    ->setHandlerClass('views_data', 'Drupal\\views\\EntityViewsData');
  $entity_type
    ->set('data_table', NULL);
  $entity_repository
    ->setLastInstalledDefinition($entity_type);
}