protected function _decorateHtmlWithEditButton($html, \Cms\Orm\CmsCategoryRecord $category)
    {
        //brak roli redaktora
        if (!$this->_hasRedactorRole()) {
            return $html;
        }
        //zwraca wyrenderowany HTML
        return str_replace('</body>', \Mmi\Mvc\ActionHelper::getInstance()->action(new \Mmi\Http\Request(['module' => 'cms', 'controller' => 'category', 'action' => 'editButton', 'originalId' => $category->cmsCategoryOriginalId, 'categoryId' => $category->id])) . '</body>', $html);
    }
protected function _decorateHtmlWithEditButton($html, \Cms\Orm\CmsCategoryRecord $category)
    {
        //brak roli redaktora
        if (!$this->_hasRedactorRole()) {
            return $html;
        }
        //zwraca wyrenderowany HTML
        return str_replace('</body>', \Mmi\Mvc\ActionHelper::getInstance()->action(new \Mmi\Http\Request(['module' => 'cms', 'controller' => 'category', 'action' => 'editButton', 'originalId' => $category->cmsCategoryOriginalId, 'categoryId' => $category->id])) . '</body>', $html);
    }
protected function _decorateHtmlWithEditButton ( $ html , \ Cms \ Orm \ CmsCategoryRecord $ category ) { //brak roli redaktora if ( ! $ this -> _hasRedactorRole ( ) ) { return $ html ; } //zwraca wyrenderowany HTML return str_replace ( '</body>' , \ Mmi \ Mvc \ ActionHelper :: getInstance ( ) -> action ( new \ Mmi \ Http \ Request ( [ 'module' => 'cms' , 'controller' => 'category' , 'action' => 'editButton' , 'originalId' => $ category -> cmsCategoryOriginalId , 'categoryId' => $ category -> id ] ) ) . '</body>' , $ html ) ; }
Pobiera request do renderowania akcji
@param \Cms\Orm\CmsCategoryRecord $category
@return string
@throws \Mmi\App\KernelException
Pobiera request do renderowania akcji