protected function DfpHtmlResponseAttachmentsProcessor::getHeadBottom in Doubleclick for Publishers (DFP) 8
Gets the javascript to add after the slot definitions.
Return value
\Drupal\Component\Render\MarkupInterface The rendered HTML.
1 call to DfpHtmlResponseAttachmentsProcessor::getHeadBottom()
- DfpHtmlResponseAttachmentsProcessor::processAttachments in src/
DfpHtmlResponseAttachmentsProcessor.php - Processes the attachments of a response that has attachments.
File
- src/
DfpHtmlResponseAttachmentsProcessor.php, line 159 - Contains \Drupal\dfp\DfpResponseAttachmentsProcessor.
Class
- DfpHtmlResponseAttachmentsProcessor
- Processes attachments of HTML responses with Dfp slot attachments.
Namespace
Drupal\dfpCode
protected function getHeadBottom() {
$global_settings = $this->configFactory
->get('dfp.settings');
$targeting = $global_settings
->get('targeting');
$this->moduleHandler
->alter('dfp_global_targeting', $targeting);
$targeting = TagView::formatTargeting($targeting, $this->token, $this->moduleHandler);
return [
// Use a fake #type to prevent
// HtmlResponseAttachmentsProcessor::processHead() adding one.
'#type' => 'dfp_script',
'#theme' => 'dfp_js_head_bottom',
'#async_rendering' => $global_settings
->get('async_rendering'),
'#single_request' => $global_settings
->get('single_request'),
'#collapse_empty_divs' => $global_settings
->get('collapse_empty_divs'),
'#disable_init_load' => $global_settings
->get('disable_init_load'),
'#targeting' => $targeting,
];
}