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 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; } }