function OpenModalDialogWithUrl::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Ajax/OpenModalDialogWithUrl.php \Drupal\Core\Ajax\OpenModalDialogWithUrl::__construct()

Constructs a OpenModalDialogWithUrl object.

Parameters

string $url: Only Internal URLs or URLs with the same domain and base path are allowed.

array $settings: The dialog settings.

File

core/lib/Drupal/Core/Ajax/OpenModalDialogWithUrl.php, line 29

Class

OpenModalDialogWithUrl
Provides an AJAX command for opening a modal with URL.

Namespace

Drupal\Core\Ajax

Code

public function __construct(string $url, array $settings) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.