diff --git a/application/src/View/Helper/ResourcePageBlocks.php b/application/src/View/Helper/ResourcePageBlocks.php index 8b76b87e2..eb6ed2c47 100644 --- a/application/src/View/Helper/ResourcePageBlocks.php +++ b/application/src/View/Helper/ResourcePageBlocks.php @@ -77,7 +77,7 @@ public function getBlockCount() /** * Return an array of block markup for a region of the resource page. * - * @return array + * @return array An array of block markup keyed by the block name */ public function getBlocksArray() { @@ -88,7 +88,7 @@ public function getBlocksArray() $blocksArray = []; foreach ($this->resourcePageBlocks[$this->resourceName][$this->regionName] as $blockName) { $blockLayout = $this->blockLayoutManager->get($blockName); - $blocksArray[] = $blockLayout->render($view, $this->resource); + $blocksArray[$blockName] = $blockLayout->render($view, $this->resource); } return $blocksArray; }