Pimcore\Model\Object\ClassDefinition\Data\Hotspotimage::getForWebserviceExport PHP Method

getForWebserviceExport() public method

converts data to be exposed via webservices
public getForWebserviceExport ( string $object, mixed $params = [] ) : mixed
$object string
$params mixed
return mixed
    public function getForWebserviceExport($object, $params = [])
    {
        $data = $this->getDataFromObjectParam($object, $params);
        $dataForResource = $this->getDataForResource($data, $object, $params);
        if ($dataForResource) {
            if ($dataForResource['image__hotspots']) {
                $dataForResource['image__hotspots'] = unserialize($dataForResource['image__hotspots']);
            }
            return $dataForResource;
        }
        return null;
    }