code/LeftAndMain.php
public function getHelpLinks()
    {
        $helpLinks = $this->config()->get('help_links');
        $formattedLinks = [];

        $helpLink = $this->config()->get('help_link');
        if ($helpLink) {
            Deprecation::notice('5.0', 'Use $help_links instead of $help_link');
            $helpLinks['CMS User help'] = $helpLink;
        }

        foreach ($helpLinks as $key => $value) {
            $translationKey = str_replace(' ', '', $key);

            $formattedLinks[] = [
                'Title' => _t(__CLASS__ . '.' . $translationKey, $key),
                'URL' => $value
            ];
        }

        return ArrayList::create($formattedLinks);
    }
public function getHelpLinks()
    {
        $helpLinks = $this->config()->get('help_links');
        $formattedLinks = [];

        $helpLink = $this->config()->get('help_link');
        if ($helpLink) {
            Deprecation::notice('5.0', 'Use $help_links instead of $help_link');
            $helpLinks['CMS User help'] = $helpLink;
        }

        foreach ($helpLinks as $key => $value) {
            $translationKey = str_replace(' ', '', $key);

            $formattedLinks[] = [
                'Title' => _t(__CLASS__ . '.' . $translationKey, $key),
                'URL' => $value
            ];
        }

        return ArrayList::create($formattedLinks);
    }
public function getHelpLinks ( ) { $ helpLinks = $ this -> config ( ) -> get ( 'help_links' ) ; $ formattedLinks = [ ] ; $ helpLink = $ this -> config ( ) -> get ( 'help_link' ) ; if ( $ helpLink ) { Deprecation :: notice ( '5.0' , 'Use $help_links instead of $help_link' ) ; $ helpLinks [ 'CMS User help' ] = $ helpLink ; } foreach ( $ helpLinks as $ key => $ value ) { $ translationKey = str_replace ( ' ' , '' , $ key ) ; $ formattedLinks [ ] = [ 'Title' => _t ( __CLASS__ . '.' . $ translationKey , $ key ) , 'URL' => $ value ] ; } return ArrayList :: create ( $ formattedLinks ) ; }
Returns help_links in a format readable by a template
@return ArrayList
Returns help_links in a format readable by a template