FOF30\Toolbar\Toolbar::onCpanelsBrowse PHP Method

onCpanelsBrowse() public method

Renders the toolbar for the component's Control Panel page
public onCpanelsBrowse ( ) : void
return void
    public function onCpanelsBrowse()
    {
        if ($this->container->platform->isBackend() || $this->renderFrontendSubmenu) {
            $this->renderSubmenu();
        }
        if (!$this->container->platform->isBackend() && !$this->renderFrontendButtons) {
            return;
        }
        $option = $this->container->componentName;
        JToolBarHelper::title(JText::_(strtoupper($option)), str_replace('com_', '', $option));
        if (!$this->isDataView()) {
            return;
        }
        JToolBarHelper::preferences($option);
    }