You are here

public function ConfigEntityStorageDecorator::deleteRevision in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::deleteRevision()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::deleteRevision()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::deleteRevision()

Delete a specific entity revision.

A revision can only be deleted if it's not the currently active one.

@todo Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface instead.

Parameters

int $revision_id: The revision id.

Overrides EntityStorageInterface::deleteRevision

See also

https://www.drupal.org/node/2926958

https://www.drupal.org/node/2927226

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 75

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function deleteRevision($revision_id) {
  $this
    ->getOriginalObject()
    ->deleteRevision($revision_id);
}