/** * Converts the data so it's suitable for the editmode * * @return mixed */ public function getDataEditmode() { if ($this->snippet instanceof Document\Snippet) { return ["id" => $this->id, "path" => $this->snippet->getFullPath()]; } return null; }