hubspot-form.html.twig in Hubspot forms 8
Hubspot embed form.
3 theme calls to hubspot-form.html.twig
- HubspotBlock::build in src/
Plugin/ Block/ HubspotBlock.php - Builds and returns the renderable array for this block plugin.
- HubspotFormFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ HubspotFormFormatter.php - Builds a renderable array for a field value.
- HubspotForms::process in src/
Plugin/ Filter/ HubspotForms.php - Performs the filter processing.
File
templates/hubspot-form.html.twigView source
- {#
- /**
- * @file
- * Hubspot embed form.
- */
- #}
- <!--[if lte IE 8]>
- <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
- <![endif]-->
- <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
- <div id='{{ target }}'></div>
- <script>
- hbspt.forms.create({
- css: '',
- target: '#{{ target }}',
- portalId: '{{ portal_id }}',
- formId: '{{ form_id }}'
- });
- </script>