Embed a view into a Webform for submission I have the following set up on a D8 install using the Flag, Views and Webform modules:


A content type named Product with a Flag field that can be set to "Add product to quote" or "Remove product from quote". 
A view named "My Quote" that displays all products Flagged with "Add product to quote". 
A Webform named "Get Quote" set up to capture the client's name, email, address, etc.
I now need to add the the view for "My Quote" to the Webform in some way.


I see in D7 there was a module called Webform View that provided similar functionality to what I'm looking for. If I understand the Webform Computed Elements correctly there should be a way to do this using Twig or Tokens, but I have no idea how to get the View data using either method.

I would be very grateful if someone could point me in the right direction, or help me understand the Twig syntax for referencing a View so I can use it in my Weform.
To embed a View in a Webform, you can use the View element.

Below is the YAML for how you would embed the Frontpage view into a Webform.

frontpage:
  '#type': view
  '#name': frontpage


@see \Drupal\views\Element\View