X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsettings_tray%2Fsrc%2FAjax%2FOpenOffCanvasDialogCommand.php;fp=web%2Fcore%2Fmodules%2Fsettings_tray%2Fsrc%2FAjax%2FOpenOffCanvasDialogCommand.php;h=0000000000000000000000000000000000000000;hp=c49c42e02bf8d4af59bea8664c3d1a23186e3dd6;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/settings_tray/src/Ajax/OpenOffCanvasDialogCommand.php b/web/core/modules/settings_tray/src/Ajax/OpenOffCanvasDialogCommand.php deleted file mode 100644 index c49c42e02..000000000 --- a/web/core/modules/settings_tray/src/Ajax/OpenOffCanvasDialogCommand.php +++ /dev/null @@ -1,73 +0,0 @@ -dialogOptions['modal'] = FALSE; - $this->dialogOptions['autoResize'] = FALSE; - $this->dialogOptions['resizable'] = 'w'; - $this->dialogOptions['draggable'] = FALSE; - $this->dialogOptions['drupalAutoButtons'] = FALSE; - // @todo drupal.ajax.js does not respect drupalAutoButtons properly, pass an - // empty set of buttons until https://www.drupal.org/node/2793343 is in. - $this->dialogOptions['buttons'] = []; - if (empty($dialog_options['dialogClass'])) { - $this->dialogOptions['dialogClass'] = 'ui-dialog-off-canvas'; - } - // If no width option is provided then use the default width to avoid the - // dialog staying at the width of the previous instance when opened - // more than once, with different widths, on a single page. - if (!isset($this->dialogOptions['width'])) { - $this->dialogOptions['width'] = static::DEFAULT_DIALOG_WIDTH; - } - } - - /** - * {@inheritdoc} - */ - public function render() { - $build = parent::render(); - $build['effect'] = 'fade'; - $build['speed'] = 1000; - return $build; - } - -}