Goose\Modules\Extractors\AdditionalDataExtractor::getLinks PHP Method

    private function getLinks()
    {
        $goodLinks = [];
        $candidates = $this->article()->getTopNode()->parent()->find('a[href]');
        foreach ($candidates as $el) {
            if ($el->attr('href') != '#' && trim($el->attr('href')) != '') {
                $goodLinks[] = ['url' => $el->attr('href'), 'text' => Helper::textNormalise($el->text())];
            }
        }
        return $goodLinks;
    }