You are here

public function InstapageCmsPluginPageModel::getLandingPageHTMLFromTheApp in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/models/InstapageCmsPluginPageModel.php \InstapageCmsPluginPageModel::getLandingPageHTMLFromTheApp()

Gets and prepares Landing Page HTML from app (from request to so called enterprise)

Parameters

array $enterpriseCallResult Result from enterpriseCall() method:

Return value

string

1 call to InstapageCmsPluginPageModel::getLandingPageHTMLFromTheApp()
InstapageCmsPluginPageModel::display in core/models/InstapageCmsPluginPageModel.php
Displays the landing page.

File

core/models/InstapageCmsPluginPageModel.php, line 488

Class

InstapageCmsPluginPageModel
Class responsible for managing the landing pages.

Code

public function getLandingPageHTMLFromTheApp($enterpriseCallResult) {
  $html = isset($enterpriseCallResult['body']) ? $enterpriseCallResult['body'] : false;
  $html = $this
    ->disableCloudFlareScriptReplace($html);
  $html = $this
    ->fixHtmlHead($html);
  return $html;
}