You are here

private static function Views::canSwitch in Hook Update Deploy Tools 8

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

Check availability of modules and methods needed to enable/disable a View.

Any items called in here throw exceptions if they fail

1 call to Views::canSwitch()
Views::viewSwitch in src/Views.php
Enable or disable requested Views.

File

src/Views.php, line 138

Class

Views
Public methods for working with Views.

Namespace

HookUpdateDeployTools

Code

private static function canSwitch() {
  Check::canUse('views');
  Check::canCall('views_get_view');
  Check::canUse('ctools');
  ctools_include('export');
  Check::canCall('ctools_export_crud_set_status');
}