src/PeskyCMF/Scaffold/MenuItem/CmfRedirectMenuItem.php
public function renderAsButton(bool $withIcon = true): string {
        if ($this->isAccessible()) {
            return $this->wrapIntoShowCondition(
                Tag::a(($withIcon ? $this->makeIcon() . ' ' : '') . $this->getTitle())
                    ->setClass($this->getButtonClasses() . ' ' . $this->makeConditionalDisabledAttribute())
                    ->setHref($this->getUrl())
                    ->setTitle($this->getTooltip())
                    ->setTarget($this->openOnNewTab ? '_blank' : null)
                    ->setDataAttr('toggle', $this->hasTooltip() ? 'tooltip' : null)
                    ->setDataAttr('position', $this->hasTooltip() ? $this->getTooltipPosition() : null)
                    ->build()
            );
        } else {
            return '';
        }
    }
public function renderAsButton(bool $withIcon = true): string {
        if ($this->isAccessible()) {
            return $this->wrapIntoShowCondition(
                Tag::a(($withIcon ? $this->makeIcon() . ' ' : '') . $this->getTitle())
                    ->setClass($this->getButtonClasses() . ' ' . $this->makeConditionalDisabledAttribute())
                    ->setHref($this->getUrl())
                    ->setTitle($this->getTooltip())
                    ->setTarget($this->openOnNewTab ? '_blank' : null)
                    ->setDataAttr('toggle', $this->hasTooltip() ? 'tooltip' : null)
                    ->setDataAttr('position', $this->hasTooltip() ? $this->getTooltipPosition() : null)
                    ->build()
            );
        } else {
            return '';
        }
    }
Render menu item as <a>
@param bool $withIcon
@return string