function StageFixtureManipulator::__destruct

Same name and namespace in other branches
  1. main core/modules/package_manager/tests/modules/fixture_manipulator/src/StageFixtureManipulator.php \Drupal\fixture_manipulator\StageFixtureManipulator::__destruct()

Ensure that changes were committed before object is destroyed.

Overrides FixtureManipulator::__destruct

File

core/modules/package_manager/tests/modules/fixture_manipulator/src/StageFixtureManipulator.php, line 71

Class

StageFixtureManipulator
A fixture manipulator service that commits changes after begin.

Namespace

Drupal\fixture_manipulator

Code

public function __destruct() {
  // Overrides `__destruct` because the staged fixture manipulator service
  // will be destroyed after every request.
  // @see \Drupal\fixture_manipulator\StageFixtureManipulator::handleTearDown()
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.