Pimcore\Model\Document\Tag\Snippet::getDataEditmode PHP Method

getDataEditmode() public method

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