You are here

public static function InstapageCmsPluginConnector::checkPage in Instapage plugin 8.3

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

Checks (and displays) if a landing page should be displayed instead of normal content served by CMS.

Parameters

string $type Type of page to check ('page', 'home' or '404').:

string $slug Slug to check. Default: ''.:

1 call to InstapageCmsPluginConnector::checkPage()
InstapagePluginSubscriber::onKernelResponse in src/EventSubscriber/InstapagePluginSubscriber.php
Callback function to display 404 page.

File

core/connectors/InstapageCmsPluginConnector.php, line 283

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 checkPage($type, $slug = '') {
  return self::getSelectedConnector()
    ->checkPage($type, $slug);
}