Pimcore\Model\Metadata\Predefined::expand PHP Method

expand() public method

public expand ( )
    public function expand()
    {
        switch ($this->type) {
            case "document":
            case "asset":
            case "object":
                if (is_numeric($this->data)) {
                    $element = Element\Service::getElementById($this->type, $this->data);
                }
                if ($element) {
                    $this->data = $element->getRealFullPath();
                } else {
                    $this->data = "";
                }
                break;
            default:
                //nothing to do
        }
    }