/** * Prepares the data to return to the data store (as strings). * * @param \Cactus\Entity $entity The entity to prepare * @return array The modified/filtered/reverted data... */ protected function prepareData(\Cactus\Entity $entity) { $data = $this->filter($entity->getModifiedData()); return $entity->revert($data); }