private function setLinks($links, stdClass $scaffolderConfig)
    {
        $navLinks = '';

        foreach ($links as $link)
        {
            $navLinks .= sprintf("
            <li>
                <a href='/%s' class='waves-effect'>
                    %s
                </a>
            </li>", $scaffolderConfig->routing->prefix . '/' . strtolower($link['modelName']), $link['modelLabel']);
        }

        $this->stub = str_replace('{{links}}', $navLinks, $this->stub);

        return $this;
    }
private function setLinks($links, stdClass $scaffolderConfig)
    {
        $navLinks = '';

        foreach ($links as $link)
        {
            $navLinks .= sprintf("
            <li>
                <a href='/%s' class='waves-effect'>
                    %s
                </a>
            </li>", $scaffolderConfig->routing->prefix . '/' . strtolower($link['modelName']), $link['modelLabel']);
        }

        $this->stub = str_replace('{{links}}', $navLinks, $this->stub);

        return $this;
    }
private function setLinks ( $ links , stdClass $ scaffolderConfig ) { $ navLinks = '' ; foreach ( $ links as $ link ) { $ navLinks .= sprintf ( "
            <li>
                <a href='/%s' class='waves-effect'>
                    %s
                </a>
            </li>" , $ scaffolderConfig -> routing -> prefix . '/' . strtolower ( $ link [ 'modelName' ] ) , $ link [ 'modelLabel' ] ) ; } $ this -> stub = str_replace ( '{{links}}' , $ navLinks , $ this -> stub ) ; return $ this ; }
Add links to the nav.

@param $links
@param \stdClass $scaffolderConfig

@return $this
Add links to the nav .