diff --git a/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php b/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php index 2153c22ccbf..27054cbfce1 100644 --- a/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php +++ b/controllers/grid/catalogEntry/PublicationFormatGridCellProvider.php @@ -17,6 +17,7 @@ namespace APP\controllers\grid\catalogEntry; use APP\core\Application; +use APP\publicationFormat\PublicationFormat; use PKP\controllers\api\file\linkAction\AddFileLinkAction; use PKP\controllers\grid\DataObjectGridCellProvider; use PKP\controllers\grid\files\fileList\linkAction\SelectFilesLinkAction; @@ -97,8 +98,7 @@ public function getTemplateVarsFromRowColumn($row, $column) { $data = $row->getData(); - if (is_a($data, 'Representation')) { - /** @var Representation $data */ + if ($data instanceof PublicationFormat) { switch ($column->getId()) { case 'indent': return []; case 'name': @@ -151,7 +151,7 @@ public function getCellActions($request, $row, $column, $position = GridHandler: { $data = $row->getData(); $router = $request->getRouter(); - if (is_a($data, 'Representation')) { + if ($data instanceof PublicationFormat) { switch ($column->getId()) { case 'isAvailable': return [new LinkAction(