getData(); switch ($column->getId()) { case 'path': $dispatcher = $request->getDispatcher(); return [new LinkAction( 'details', new RedirectAction( $dispatcher->url($request, PKPApplication::ROUTE_PAGE, null) . '/' . $staticPage->getPath(), 'staticPage' ), htmlspecialchars($staticPage->getPath()) )]; default: return parent::getCellActions($request, $row, $column, $position); } } /** * Extracts variables for a given column from a data element * so that they may be assigned to template before rendering. * * @param \PKP\controllers\grid\GridRow $row * @param GridColumn $column * * @return array */ public function getTemplateVarsFromRowColumn($row, $column) { $staticPage = $row->getData(); switch ($column->getId()) { case 'path': // The action has the label return ['label' => '']; case 'title': return ['label' => $staticPage->getLocalizedTitle()]; } } }