public function UpdateService::update8805 in Apigee API Catalog 8.2
Delete API Doc entity definition.
File
- src/
UpdateService.php, line 307
Class
- UpdateService
- Class UpdateService.
Namespace
Drupal\apigee_api_catalogCode
public function update8805() {
// Get the last known state of the API Doc entity type.
$entity_update_manager = \Drupal::entityDefinitionUpdateManager();
if ($entity_type = $entity_update_manager
->getEntityType('apidoc')) {
$entity_update_manager
->uninstallEntityType($entity_type);
// Clear all caches.
drupal_flush_all_caches();
}
return 'The API Doc deprecated entity type has been removed from the system.';
}