Pimcore\Model\Property::getData PHP Méthode

getData() public méthode

public getData ( ) : mixed
Résultat mixed
    public function getData()
    {
        // lazy-load data of type asset, document, object
        if (in_array($this->getType(), ["document", "asset", "object"]) && !$this->data instanceof ElementInterface && is_numeric($this->data)) {
            return Element\Service::getElementById($this->getType(), $this->data);
        }
        return $this->data;
    }