Print view header using the "Twig Tweak" module
I have create simple extension for that:


add the following to MYMODULE.services.yml




    services:
      MYMODULE.twig.render_view_header:
        class: Drupal\MYMODULE\Twig\HeaderView
        tags:
          - { name: twig.extension }




Create HeaderView class inside MYMODULE/src/Twig.
Copy the code from HeaderView.php
Clear cache.
In your twig call the extension like:




{{ render_view_header('VIEW_NAME', 'PAGE_NAME') }}