public static function ContentSyncDialogHelper::useOffCanvas in Content Synchronization 8
Same name and namespace in other branches
- 8.2 src/Utility/ContentSyncDialogHelper.php \Drupal\content_sync\Utility\ContentSyncDialogHelper::useOffCanvas()
- 3.0.x src/Utility/ContentSyncDialogHelper.php \Drupal\content_sync\Utility\ContentSyncDialogHelper::useOffCanvas()
Use outside-in off-canvas system tray instead of dialogs.
Return value
bool TRUE if outside_in.module is enabled and system trays are not disabled.
File
- src/
Utility/ ContentSyncDialogHelper.php, line 51
Class
- ContentSyncDialogHelper
- Helper class for dialog methods.
Namespace
Drupal\content_sync\UtilityCode
public static function useOffCanvas() {
return floatval(\Drupal::VERSION) >= 8.300000000000001 && \Drupal::moduleHandler()
->moduleExists('outside_in') && !\Drupal::config('content_sync.settings')
->get('ui.offcanvas_disabled') ? TRUE : FALSE;
}