public function loadRegion($id)
    {
        $blocks = $this->entityTypeManager->getStorage('block')->loadByProperties([
            'region' => $id,
            'theme'  => $this->themeName
        ]);

        $result = [];
        foreach($blocks as $id => $values)
        {
            $result[] = $this->loadBlock($id);
        }


        return $result;
    }
public function loadRegion($id)
    {
        $blocks = $this->entityTypeManager->getStorage('block')->loadByProperties([
            'region' => $id,
            'theme'  => $this->themeName
        ]);

        $result = [];
        foreach($blocks as $id => $values)
        {
            $result[] = $this->loadBlock($id);
        }


        return $result;
    }
public function loadRegion ( $ id ) { $ blocks = $ this -> entityTypeManager -> getStorage ( 'block' ) -> loadByProperties ( [ 'region' => $ id , 'theme' => $ this -> themeName ] ) ; $ result = [ ] ; foreach ( $ blocks as $ id => $ values ) { $ result [ ] = $ this -> loadBlock ( $ id ) ; } return $ result ; }
Render region by id
@param $id
@return array
Render region by id