src/PeskyCMF/Scaffold/MenuItem/CmfRequestMenuItem.php
public function renderAsIcon(string $additionalClasses = '', bool $allowIconColorClass = true): string {
        if ($this->isAccessible()) {
            $button = Tag::a($this->makeIcon($allowIconColorClass))
                ->addCustomRenderedAttributeWithValue($this->makeConditionalDisabledAttribute())
                ->setTitle($this->getTooltipOrTitle())
                ->setHref('javascript: void(0)')
                ->setClass($additionalClasses)
                ->setDataAttr('toggle', $this->hasTooltipOrTitle() ? 'tooltip' : null)
                ->setDataAttr('position', $this->hasTooltipOrTitle() ? $this->getTooltipPosition() : null)
                ->setDataAttr('action', $this->getActionType())
                ->setDataAttr('url', $this->getUrl())
                ->setDataAttr('method', $this->getHttpMethod())
                ->setDataAttr('data', $this->makeRequestDataForHtmlAttribute())
                ->setDataAttr('response-type', $this->getResponseDataType())
                ->setDataAttr('confirm', $this->getConfirm())
                ->setDataAttr('on-success', $this->getOnSuccess())
                ->setDataAttr('block-datagrid', $this->isBlockDataGrid() ? '1' : null);
            return $this->wrapIntoShowCondition($this->modifyTagBeforeRendering($button)->build());
        } else {
            return '';
        }
    }
public function renderAsIcon(string $additionalClasses = '', bool $allowIconColorClass = true): string {
        if ($this->isAccessible()) {
            $button = Tag::a($this->makeIcon($allowIconColorClass))
                ->addCustomRenderedAttributeWithValue($this->makeConditionalDisabledAttribute())
                ->setTitle($this->getTooltipOrTitle())
                ->setHref('javascript: void(0)')
                ->setClass($additionalClasses)
                ->setDataAttr('toggle', $this->hasTooltipOrTitle() ? 'tooltip' : null)
                ->setDataAttr('position', $this->hasTooltipOrTitle() ? $this->getTooltipPosition() : null)
                ->setDataAttr('action', $this->getActionType())
                ->setDataAttr('url', $this->getUrl())
                ->setDataAttr('method', $this->getHttpMethod())
                ->setDataAttr('data', $this->makeRequestDataForHtmlAttribute())
                ->setDataAttr('response-type', $this->getResponseDataType())
                ->setDataAttr('confirm', $this->getConfirm())
                ->setDataAttr('on-success', $this->getOnSuccess())
                ->setDataAttr('block-datagrid', $this->isBlockDataGrid() ? '1' : null);
            return $this->wrapIntoShowCondition($this->modifyTagBeforeRendering($button)->build());
        } else {
            return '';
        }
    }
Render menu item as <a> icon (title will be used as tooltip)
@param string $additionalClasses
@param bool $allowIconColorClass
@return string