how to get webform title and category with no submissions in view or hook?
use below code as a function in your module file and call it on your custom block.

  function module_name_webformtitle(){
    $query = Drupal::service('entity.query')-&gt;get('webform');
    $query-&gt;condition('category', 'survey_name');//your survey name
    $entity_ids = $query-&gt;execute();
    $webform_id=array();
     foreach($entity_ids as $webid){
       $webform_id[]=$webid;     
     }
    $webform = Webform::loadMultiple($webform_id);
     foreach($webform as $webforms){
        $webformtitle=$webforms-&gt;get('title');
    }
  }