public function collect(Request $request, Response $response, \Exception $exception = null)
    {
        $this->data = [
            'version'       => Bolt\Version::VERSION,
            'payoff'        => 'Sophisticated, lightweight & simple CMS',
            'dashboardlink' => sprintf('<a href="%s">%s</a>', $this->app['url_generator']->generate('dashboard'), 'Dashboard'),
            'branding'      => null,
            'editlink'      => null,
            'edittitle'     => null,
        ];

        if ($this->app['config']->get('general/branding/provided_by/0')) {
            $this->data['branding'] = sprintf(
                '%s %s',
                Trans::__('general.phrase.provided-by-colon'),
                $this->app['config']->get('general/branding/provided_link')
            );
        }

        if (!empty($this->app['editlink'])) {
            $this->data['editlink'] = $this->app['editlink'];
            $this->data['edittitle'] = $this->app['edittitle'];
        }
    }
public function collect(Request $request, Response $response, \Exception $exception = null)
    {
        $this->data = [
            'version'       => Bolt\Version::VERSION,
            'payoff'        => 'Sophisticated, lightweight & simple CMS',
            'dashboardlink' => sprintf('<a href="%s">%s</a>', $this->app['url_generator']->generate('dashboard'), 'Dashboard'),
            'branding'      => null,
            'editlink'      => null,
            'edittitle'     => null,
        ];

        if ($this->app['config']->get('general/branding/provided_by/0')) {
            $this->data['branding'] = sprintf(
                '%s %s',
                Trans::__('general.phrase.provided-by-colon'),
                $this->app['config']->get('general/branding/provided_link')
            );
        }

        if (!empty($this->app['editlink'])) {
            $this->data['editlink'] = $this->app['editlink'];
            $this->data['edittitle'] = $this->app['edittitle'];
        }
    }
public function collect ( Request $ request , Response $ response , \ Exception $ exception = null ) { $ this -> data = [ 'version' => Bolt \ Version :: VERSION , 'payoff' => 'Sophisticated, lightweight & simple CMS' , 'dashboardlink' => sprintf ( '<a href="%s">%s</a>' , $ this -> app [ 'url_generator' ] -> generate ( 'dashboard' ) , 'Dashboard' ) , 'branding' => null , 'editlink' => null , 'edittitle' => null , ] ; if ( $ this -> app [ 'config' ] -> get ( 'general/branding/provided_by/0' ) ) { $ this -> data [ 'branding' ] = sprintf ( '%s %s' , Trans :: __ ( 'general.phrase.provided-by-colon' ) , $ this -> app [ 'config' ] -> get ( 'general/branding/provided_link' ) ) ; } if ( ! empty ( $ this -> app [ 'editlink' ] ) ) { $ this -> data [ 'editlink' ] = $ this -> app [ 'editlink' ] ; $ this -> data [ 'edittitle' ] = $ this -> app [ 'edittitle' ] ; } }
Collect the date for the Toolbar item.

@param Request    $request
@param Response   $response
@param \Exception $exception
Collect the date for the Toolbar item .