src/BoomCMS/Chunk/Linkset.php
public function getLinks(int $limit = 0): array
    {
        if ($this->links === null) {
            $links = $this->attrs['links'] ?? [];
            $this->links = $this->removeInvalidOrHiddenLinks($links);
        }

        return $limit > 0 ? array_slice($this->links, 0, $limit) : $this->links;
    }
public function getLinks(int $limit = 0): array
    {
        if ($this->links === null) {
            $links = $this->attrs['links'] ?? [];
            $this->links = $this->removeInvalidOrHiddenLinks($links);
        }

        return $limit > 0 ? array_slice($this->links, 0, $limit) : $this->links;
    }
public function getLinks ( int $ limit = 0 ) : array { if ( $ this -> links === null ) { $ links = $ this -> attrs [ 'links' ] ?? [ ] ; $ this -> links = $ this -> removeInvalidOrHiddenLinks ( $ links ) ; } return $ limit > 0 ? array_slice ( $ this -> links , 0 , $ limit ) : $ this -> links ; }
Returns an array of links in the linkset.

Or an empty array if the linkset doesn't contain any (valid, visible) links

@param int $limit

@return array
Returns an array of links in the linkset .