dialogOptions['modal'] = FALSE; $this->dialogOptions['autoResize'] = FALSE; $this->dialogOptions['resizable'] = 'w'; $this->dialogOptions['draggable'] = FALSE; $this->dialogOptions['drupalAutoButtons'] = FALSE; $this->dialogOptions['drupalOffCanvasPosition'] = $position; // Add CSS class to #drupal-off-canvas element. This enables developers to // select previous versions of off-canvas styles by using custom selector: // #drupal-off-canvas:not(.drupal-off-canvas-reset). $this->dialogOptions['classes']['ui-dialog-content'] = 'drupal-off-canvas-reset'; // 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; } }