You are here

public function RollbackUpdate::execute in Automatic Updates 8

Handle database updates.

Return value

bool TRUE if database update was handled successfully, FALSE otherwise.

Overrides DatabaseUpdateHandlerInterface::execute

File

src/Plugin/DatabaseUpdateHandler/RollbackUpdate.php, line 59

Class

RollbackUpdate
Rollback database updates.

Namespace

Drupal\automatic_updates\Plugin\DatabaseUpdateHandler

Code

public function execute() {
  $this->logger
    ->notice('Rollback initiated due to database updates.');

  // Simply rollback the update by returning FALSE.
  return FALSE;
}