Pimcore\Model\Property::resolveDependencies PHP Method

resolveDependencies() public method

public resolveDependencies ( ) : array
return array
    public function resolveDependencies()
    {
        $dependencies = [];
        if ($this->getData() instanceof ElementInterface) {
            $elementType = Element\Service::getElementType($this->getData());
            $key = $elementType . "_" . $this->getData()->getId();
            $dependencies[$key] = ["id" => $this->getData()->getId(), "type" => $elementType];
        }
        return $dependencies;
    }