You are here

public static function InstapageCmsPluginConnector::getHomeURL in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginConnector.php \InstapageCmsPluginConnector::getHomeURL()

Gets the site home URL.

Parameters

bool $protocol Value returned with protocol or not.:

Return value

string Site home URL. With protocol or not.

9 calls to InstapageCmsPluginConnector::getHomeURL()
InstapageCmsPluginDrupal7Connector::getDeprecatedData in core/connectors/InstapageCmsPluginDrupal7Connector.php
Gets the landing pages saved in legacy DB structure.
InstapageCmsPluginDrupal8Connector::getDeprecatedData in core/connectors/InstapageCmsPluginDrupal8Connector.php
Gets the landing pages saved in legacy DB structure.
InstapageCmsPluginPageModel::check in core/models/InstapageCmsPluginPageModel.php
Checks (and returns) if a landing page should be displayed instead of normal content served by CMS.
InstapageCmsPluginPageModel::fixHtmlHead in core/models/InstapageCmsPluginPageModel.php
Sets up the proper URL for Instapage proxy, if it is enabled.
InstapageCmsPluginPageModel::publishPage in core/models/InstapageCmsPluginPageModel.php
Sends a request to publish a page in Instapage app.

... See full list

File

core/connectors/InstapageCmsPluginConnector.php, line 170

Class

InstapageCmsPluginConnector
Main connector class, used to integrate with PHP-based CMSes. It's job is to detect a CMS that executes the code and select proper CMS Connector.

Code

public static function getHomeURL($protocol = true) {
  return self::getSelectedConnector()
    ->getHomeURL($protocol);
}