FluidTYPO3\Flux\View\PreviewView::drawNewIcon PHP Method

drawNewIcon() protected method

protected drawNewIcon ( array $row, FluidTYPO3\Flux\Form\Container\Column $column, integer $after ) : string
$row array
$column FluidTYPO3\Flux\Form\Container\Column
$after integer
return string
    protected function drawNewIcon(array $row, Column $column, $after = 0)
    {
        $columnName = $column->getName();
        $after = FALSE === empty($columnName) && FALSE === empty($after) ? '-' . $after : $row['pid'];
        $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
        $icon = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render();
        $uri = $this->getNewLink($row, $after, $columnName);
        $title = $this->getLanguageService()->getLL('newRecordHere');
        $inner = $this->getLanguageService()->getLL('content');
        return sprintf($this->templates['link'], htmlspecialchars($uri), $title, $icon, $inner);
    }