getData(); $columnId = $column->getId(); assert($element instanceof \PKP\core\DataObject && !empty($columnId)); switch ($columnId) { case 'files': // handled by our link action. return ['label' => '']; } } /** * Get cell actions associated with this row/column combination * * @param \PKP\controllers\grid\GridRow $row * @param GridColumn $column * * @return array an array of LinkAction instances */ public function getCellActions($request, $row, $column, $position = GridHandler::GRID_ACTION_POSITION_DEFAULT) { switch ($column->getId()) { case 'files': $element = $row->getData(); assert($element instanceof \PKP\context\LibraryFile); // Create the cell action to download a file. return [new DownloadLibraryFileLinkAction($request, $element)]; } return parent::getCellActions($request, $row, $column, $position); } }