Merge branch 'MDL-72278-master' of git://github.com/bmbrands/moodle

This commit is contained in:
Jun Pataleta
2021-10-07 22:48:10 +08:00
8 changed files with 56 additions and 4 deletions
+12
View File
@@ -382,6 +382,18 @@ class block_manager {
return !empty($this->visibleblockcontent[$region]) || !empty($this->extracontent[$region]);
}
/**
* Determine whether a region contains any fake blocks.
*
* (Fake blocks are typically added to the extracontent array per region)
*
* @param string $region a block region that exists on this page.
* @return boolean Whether there are fake blocks in this region.
*/
public function region_has_fakeblocks($region): bool {
return !empty($this->extracontent[$region]);
}
/**
* Get an array of all of the installed blocks.
*