function StageFixtureManipulator::queueManipulation

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

Queues manipulation arguments to be called in ::doCommitChanges().

Parameters

string $method: The method name.

array $arguments: The arguments.

Overrides FixtureManipulator::queueManipulation

File

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

Class

StageFixtureManipulator
A fixture manipulator service that commits changes after begin.

Namespace

Drupal\fixture_manipulator

Code

protected function queueManipulation(string $method, array $arguments) : void {
  $stored_arguments = $this->getQueuedManipulationItems();
  $stored_arguments[$method][] = $arguments;
  $this->state
    ->set(self::STATE_KEY, $stored_arguments);
}

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