Pimcore\Model\Document\Tag\Video::getData PHP Method

getData() public method

See also: Document\Tag\TagInterface::getData
public getData ( ) : mixed
return mixed
    public function getData()
    {
        $path = $this->id;
        if ($this->type == "asset" && ($video = Asset::getById($this->id))) {
            $path = $video->getFullPath();
        }
        $poster = Asset::getById($this->poster);
        return ["id" => $this->id, "type" => $this->type, "title" => $this->title, "description" => $this->description, "path" => $path, "poster" => $poster ? $poster->getFullPath() : ""];
    }