/** * Render internal links * * Link identifiers groupd by target names for all links in the document, * which should be associated with the target at the end of the document * rendering. * * @return void */ protected function renderInternalLinks() { foreach ($this->internalLinkSources as $target => $links) { if (!isset($this->internalTargets[$target])) { // No target defined for these links continue; } foreach ($links as $link) { $this->document->setLink($link, 0, $this->internalTargets[$target]); } } }