Pimcore\Model\Document\Link::resolveDependencies PHP Method

resolveDependencies() public method

See also: Document::resolveDependencies
public resolveDependencies ( ) : array
return array
    public function resolveDependencies()
    {
        $dependencies = parent::resolveDependencies();
        if ($this->getLinktype() == "internal") {
            if ($this->getObject() instanceof Document || $this->getObject() instanceof Asset) {
                $key = $this->getInternalType() . "_" . $this->getObject()->getId();
                $dependencies[$key] = ["id" => $this->getObject()->getId(), "type" => $this->getInternalType()];
            }
        }
        return $dependencies;
    }