Sulu\Component\Content\Compat\Structure\PageBridge::getInternalLinkContent PHP Method

getInternalLinkContent() public method

    public function getInternalLinkContent()
    {
        $target = $this->getDocument()->getRedirectTarget();
        if (!$target) {
            throw new \RuntimeException(sprintf('No redirect target set on document at path "%s" with redirect type "%s"', $this->inspector->getPath($this->document), $this->document->getRedirectType()));
        }
        return $this->documentToStructure($target);
    }