You are here

public static function PageManager::canImport in Hook Update Deploy Tools 8

Same name and namespace in other branches
  1. 7 src/PageManager.php \HookUpdateDeployTools\PageManager::canImport()

Checks if Page Manager is enabled and import functions are available.

Return value

bool TRUE if enabled.

Overrides ImportInterface::canImport

1 call to PageManager::canImport()
PageManager::import in src/PageManager.php
Imports Page Manager pages using the panels module & template.

File

src/PageManager.php, line 205

Class

PageManager
Public methods working with Panels.

Namespace

HookUpdateDeployTools

Code

public static function canImport() {
  Check::canUse('ctools');
  Check::canUse('page_manager');
  ctools_include('page', 'page_manager', 'plugins/tasks');
  Check::canCall('page_manager_make_task_name');
  Check::canCall('page_manager_get_page_cache');
  Check::canCall('page_manager_page_load_all');
  Check::canCall('page_manager_page_new_page_cache');
  Check::canCall('page_manager_set_page_cache');
  Check::canCall('page_manager_page_save');
  Check::canCall('page_manager_edit_url');
  Check::canCall('page_manager_page_load');
  return TRUE;
}