public function InstapageCmsPluginDrupal8Connector::getHomeURL in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/connectors/InstapageCmsPluginDrupal8Connector.php \InstapageCmsPluginDrupal8Connector::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.
2 calls to InstapageCmsPluginDrupal8Connector::getHomeURL()
- InstapageCmsPluginDrupal8Connector::checkCustomUrl in core/
connectors/ InstapageCmsPluginDrupal8Connector.php - Checks (and displays) if a landing page hould be displayed instead of normal CMS page under current URL.
- InstapageCmsPluginDrupal8Connector::checkHomepage in core/
connectors/ InstapageCmsPluginDrupal8Connector.php - Checks (and displays) if a landing page marked as homepage should be displayed instead of normal CMS homepage.
File
- core/
connectors/ InstapageCmsPluginDrupal8Connector.php, line 389
Class
- InstapageCmsPluginDrupal8Connector
- Class that utilizes native Drupal 8 functions to perform actions like remote requests and DB operations.
Code
public function getHomeURL($protocol = true) {
$url = $this
->getSiteURL($protocol);
return $url;
}