private function loadBlocks(DashboardInterface $dashboard): void
    {
        $blocks = $this->blockInteractor->loadDashboardBlocks($dashboard);

        // save a local cache
        foreach ($blocks as $block) {
            $this->blocks[$block->getId()] = $block;
        }
    }
private function loadBlocks(DashboardInterface $dashboard): void
    {
        $blocks = $this->blockInteractor->loadDashboardBlocks($dashboard);

        // save a local cache
        foreach ($blocks as $block) {
            $this->blocks[$block->getId()] = $block;
        }
    }
private function loadBlocks ( DashboardInterface $ dashboard ) : void { $ blocks = $ this -> blockInteractor -> loadDashboardBlocks ( $ dashboard ) ; // save a local cache foreach ( $ blocks as $ block ) { $ this -> blocks [ $ block -> getId ( ) ] = $ block ; } }
load all the related nested blocks linked to one dashboard.
load all the related nested blocks linked to one dashboard .