You are here

public function UpdateService::update8806 in Apigee API Catalog 8.2

Recreate API Doc entity definition.

Rollback update8805().

File

src/UpdateService.php, line 325

Class

UpdateService
Class UpdateService.

Namespace

Drupal\apigee_api_catalog

Code

public function update8806() {
  \Drupal::entityTypeManager()
    ->clearCachedDefinitions();
  $entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $entity_definition_update_manager
    ->installEntityType(\Drupal::entityTypeManager()
    ->getDefinition('apidoc'));

  // Clear all caches.
  drupal_flush_all_caches();
  return 'Installed API Doc deprecated entity type.';
}