Chris@0: dialogOptions['modal'] = FALSE; Chris@0: $this->dialogOptions['autoResize'] = FALSE; Chris@0: $this->dialogOptions['resizable'] = 'w'; Chris@0: $this->dialogOptions['draggable'] = FALSE; Chris@0: $this->dialogOptions['drupalAutoButtons'] = FALSE; Chris@0: // @todo drupal.ajax.js does not respect drupalAutoButtons properly, pass an Chris@0: // empty set of buttons until https://www.drupal.org/node/2793343 is in. Chris@0: $this->dialogOptions['buttons'] = []; Chris@0: if (empty($dialog_options['dialogClass'])) { Chris@0: $this->dialogOptions['dialogClass'] = 'ui-dialog-off-canvas'; Chris@0: } Chris@0: // If no width option is provided then use the default width to avoid the Chris@0: // dialog staying at the width of the previous instance when opened Chris@0: // more than once, with different widths, on a single page. Chris@0: if (!isset($this->dialogOptions['width'])) { Chris@0: $this->dialogOptions['width'] = static::DEFAULT_DIALOG_WIDTH; Chris@0: } Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function render() { Chris@0: $build = parent::render(); Chris@0: $build['effect'] = 'fade'; Chris@0: $build['speed'] = 1000; Chris@0: return $build; Chris@0: } Chris@0: Chris@0: }