protected function evalToolbarButtons()
    {
        $buttons = $this->toolbarButtons;

        if (is_string($buttons)) {
            $buttons = array_map(function ($button) {
                return strlen($button) ? $button : '|';
            }, explode('|', $buttons));
        }

        return $buttons;
    }
protected function evalToolbarButtons()
    {
        $buttons = $this->toolbarButtons;

        if (is_string($buttons)) {
            $buttons = array_map(function ($button) {
                return strlen($button) ? $button : '|';
            }, explode('|', $buttons));
        }

        return $buttons;
    }
protected function evalToolbarButtons ( ) { $ buttons = $ this -> toolbarButtons ; if ( is_string ( $ buttons ) ) { $ buttons = array_map ( function ( $ button ) { return strlen ( $ button ) ? $ button : '|' ; } , explode ( '|' , $ buttons ) ) ; } return $ buttons ; }
Determine the toolbar buttons to use based on config.
@return string
Determine the toolbar buttons to use based on config .