You are here

public function InstapageCmsPluginWPConnector::getPluginsDebugHTML in Instapage plugin 8.3

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

Gets the HTML for CMS plugins/modules.

Return value

string HTML to include in the debug log.

File

core/connectors/InstapageCmsPluginWPConnector.php, line 725

Class

InstapageCmsPluginWPConnector
Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.

Code

public function getPluginsDebugHTML() {
  $allPlugins = get_plugins();
  $view = InstapageCmsPluginViewModel::getInstance();
  $view
    ->init(INSTAPAGE_PLUGIN_PATH . '/templates/log_plugins.php');
  $view->rows = $allPlugins;
  return $view
    ->fetch();
}