protected function DfpHtmlResponseAttachmentsProcessor::getHeadTop in Doubleclick for Publishers (DFP) 8
Gets the javascript to add before the slot definitions.
Return value
\Drupal\Component\Render\MarkupInterface The rendered HTML.
1 call to DfpHtmlResponseAttachmentsProcessor::getHeadTop()
- DfpHtmlResponseAttachmentsProcessor::processAttachments in src/
DfpHtmlResponseAttachmentsProcessor.php - Processes the attachments of a response that has attachments.
File
- src/
DfpHtmlResponseAttachmentsProcessor.php, line 143 - Contains \Drupal\dfp\DfpResponseAttachmentsProcessor.
Class
- DfpHtmlResponseAttachmentsProcessor
- Processes attachments of HTML responses with Dfp slot attachments.
Namespace
Drupal\dfpCode
protected function getHeadTop() {
return [
// Use a fake #type to prevent
// HtmlResponseAttachmentsProcessor::processHead() adding one.
'#type' => 'dfp_script',
'#theme' => 'dfp_js_head_top',
'#google_tag_services_url' => TagInterface::GOOGLE_TAG_SERVICES_URL,
];
}