Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OpenOffCanvasDialogCommand.php

function OpenOffCanvasDialogCommand::render

Overrides OpenDialogCommand::render

File

core/lib/Drupal/Core/Ajax/OpenOffCanvasDialogCommand.php, line 79

Class

OpenOffCanvasDialogCommand
Defines an AJAX command to open content in a dialog in an off-canvas tray.

Namespace

Drupal\Core\Ajax

Code

public function render() {
    $build = parent::render();
    $build['effect'] = 'fade';
    $build['speed'] = 1000;
    return $build;
}
RSS feed
Powered by Drupal