public function loadBlock($id)
    {
        $block = $this->entityTypeManager->getStorage('block')->load($id);


        return $block ? $this->entityTypeManager->getViewBuilder('block')->view($block) : '';
    }
public function loadBlock($id)
    {
        $block = $this->entityTypeManager->getStorage('block')->load($id);


        return $block ? $this->entityTypeManager->getViewBuilder('block')->view($block) : '';
    }
public function loadBlock ( $ id ) { $ block = $ this -> entityTypeManager -> getStorage ( 'block' ) -> load ( $ id ) ; return $ block ? $ this -> entityTypeManager -> getViewBuilder ( 'block' ) -> view ( $ block ) : '' ; }
Return array of selected block
@param $id string
@return array|string
Return array of selected block