public function getAllBlocks()
    {
        $this->load();

        $blocks = [];
        foreach ($this->blockCache as $blockCache) {
            $blocks = array_merge($blocks, $blockCache);
        }

        return $blocks;
    }
public function getAllBlocks()
    {
        $this->load();

        $blocks = [];
        foreach ($this->blockCache as $blockCache) {
            $blocks = array_merge($blocks, $blockCache);
        }

        return $blocks;
    }
public function getAllBlocks ( ) { $ this -> load ( ) ; $ blocks = [ ] ; foreach ( $ this -> blockCache as $ blockCache ) { $ blocks = array_merge ( $ blocks , $ blockCache ) ; } return $ blocks ; }
Get all cached blocks

Note; this is a dangerous method and should only be used to retrieve
blocks from caches other than the current `object`.

@return array
Get all cached blocks