SetFormCommand.php
Same filename in other branches
Namespace
Drupal\views_ui\AjaxFile
-
core/
modules/ views_ui/ src/ Ajax/ SetFormCommand.php
View source
<?php
namespace Drupal\views_ui\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* Provides an AJAX command for setting a form submit URL in modal forms.
*
* This command is implemented in Drupal.AjaxCommands.prototype.viewsSetForm.
*/
class SetFormCommand implements CommandInterface {
/**
* The URL of the form.
*
* @var string
*/
protected $url;
/**
* Constructs a SetFormCommand object.
*
* @param string $url
* The URL of the form.
*/
public function __construct($url) {
$this->url = $url;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'viewsSetForm',
'url' => $this->url,
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
SetFormCommand | Provides an AJAX command for setting a form submit URL in modal forms. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.