How to display webform in node file in drupal 8?

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

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


Updated March 26, 2015 14:02 PM

Updated March 27, 2015 05:02 AM

Updated May 05, 2015 21:03 PM

Updated May 26, 2015 03:03 AM

Updated June 01, 2015 18:03 PM