How to display webform in node file in drupal 8?

by user3292506   Last Updated September 11, 2019 08:07 AM - source

I am trying to display my webform using MYTHEME.theme file but I did not get any result.

Can anyone tell me the solution on this?

I am using below code function THEMENAME_preprocess_webform(&$vars){ $wfid = $vars["element"]["#webform_id"]; $wf = \Drupal\webform\Entity\Webform::load($wfid); $vars["title"] = $wf->label(); }

Tags : nodes

Related Questions

Disable read more link

Updated March 26, 2015 14:02 PM

Node Cancel Button?

Updated May 26, 2015 03:03 AM

Return User Back to Previous Page?

Updated June 01, 2015 18:03 PM