getId(); if (!empty($blockName)) { $router = $request->getRouter(); // Create the "edit custom block" action $this->addAction( new LinkAction( 'editCustomBlock', new AjaxModal( $router->url($request, null, null, 'editCustomBlock', null, ['blockName' => $blockName]), __('grid.action.edit'), 'modal_edit', true ), __('grid.action.edit'), 'edit' ) ); // Create the "delete custom block" action $this->addAction( new LinkAction( 'deleteCustomBlock', new RemoteActionConfirmationModal( $request->getSession(), __('common.confirmDelete'), __('grid.action.delete'), $router->url($request, null, null, 'deleteCustomBlock', null, ['blockName' => $blockName]), 'modal_delete' ), __('grid.action.delete'), 'delete' ) ); } } } if (!PKP_STRICT_MODE) { class_alias('\APP\plugins\generic\customBlockManager\controllers\grid\CustomBlockGridRow', '\CustomBlockGridRow'); }