protected function getPageExtraBlocks($page)
{
// add extras to the page array
if ($page['extra_ids'] !== null) {
$blocks = $this->getBlocks();
$ids = (array) explode(',', $page['extra_ids']);
$pageBlocks = array();
foreach ($ids as $id) {
$id = (int) $id;
// available in extras, so add it to the pageData-array
if (isset($blocks[$id])) {
$pageBlocks[$id] = $blocks[$id];
}
}
return $pageBlocks;
}
}