public static function ContentSyncDialogHelper::useOffCanvas in Content Synchronization 8.2
Same name and namespace in other branches
- 8 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.
1 call to ContentSyncDialogHelper::useOffCanvas()
- ContentSyncDialogHelper::getModalDialogAttributes in src/
Utility/ ContentSyncDialogHelper.php - Get modal dialog attributes.
File
- src/
Utility/ ContentSyncDialogHelper.php, line 52
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;
}