You are here

public static function EntityUpdate::cleanupEntityBackup in Entity Update 8

Same name and namespace in other branches
  1. 2.0.x src/EntityUpdate.php \Drupal\entity_update\EntityUpdate::cleanupEntityBackup()

Cleanup entity backup database.

Return value

array The list of entities to update.

7 calls to EntityUpdate::cleanupEntityBackup()
drush_entity_update in ./entity_update.drush.inc
Call back function of entity-update.
EntityUpdate::safeUpdateEntityType in src/EntityUpdate.php
Update an entity type.
EntityUpdateExec::submitFormClean in src/Form/EntityUpdateExec.php
Run backuped entities cleanup.
EntityUpdateFunctionsTest::testEntityUpdateAdvanced in modules/entity_update_tests/src/Tests/EntityUpdateFunctionsTest.php
Entity advanced update simulation.
EntityUpdateFunctionsTest::testEntityUpdateClean in modules/entity_update_tests/src/Tests/EntityUpdateFunctionsTest.php
Entity update function : clean.

... See full list

File

src/EntityUpdate.php, line 364

Class

EntityUpdate
EntityUpdate Main Class.

Namespace

Drupal\entity_update

Code

public static function cleanupEntityBackup() {

  // Get Database connection.
  $con = Database::getConnection();
  $con
    ->truncate('entity_update')
    ->execute();
  return TRUE;
}