/** * {@inheritDoc} */ public function drop(FormFlowInterface $flow) { $savedFlows = $this->storage->get(DataManagerInterface::STORAGE_ROOT, array()); // remove data for only this flow instance if (isset($savedFlows[$flow->getName()][$flow->getInstanceId()])) { unset($savedFlows[$flow->getName()][$flow->getInstanceId()]); } $this->storage->set(DataManagerInterface::STORAGE_ROOT, $savedFlows); }
public function testRemove() { $this->assertNull($this->storage->remove('foo')); $this->storage->set('foo', 'bar'); $this->assertEquals('bar', $this->storage->remove('foo')); }
public function testRemove() { $this->storage->set('foo', 'bar'); $this->storage->remove('foo'); $this->assertFalse($this->storage->has('foo')); }
protected function saveStepData(array $data) { $this->storage->set($this->getStepDataKey(), $data); }