You are here

public static function WebformDialogHelper::useOffCanvas in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Utility/WebformDialogHelper.php \Drupal\webform\Utility\WebformDialogHelper::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.

6 calls to WebformDialogHelper::useOffCanvas()
WebformDialogHelper::attachLibraries in src/Utility/WebformDialogHelper.php
Attach libraries required by (modal) dialogs.
WebformDialogHelper::getOffCanvasDialogAttributes in src/Utility/WebformDialogHelper.php
Get modal dialog attributes.
WebformSubmissionForm::displayMessages in src/WebformSubmissionForm.php
Display draft, previous submission, and autofill status messages for this webform submission.
WebformUiElementTypeFormBase::buildRow in modules/webform_ui/src/Form/WebformUiElementTypeFormBase.php
Build element type row.
WebformUiEntityElementsForm::getElementRow in modules/webform_ui/src/WebformUiEntityElementsForm.php
Gets an row for a single element.

... See full list

File

src/Utility/WebformDialogHelper.php, line 52

Class

WebformDialogHelper
Helper class for modal and off-canvas dialog methods.

Namespace

Drupal\webform\Utility

Code

public static function useOffCanvas() {
  return !\Drupal::config('webform.settings')
    ->get('ui.offcanvas_disabled') ? TRUE : FALSE;
}