class SetFormCommand
Provides an AJAX command for setting a form submit URL in modal forms.
This command is implemented in Drupal.AjaxCommands.prototype.viewsSetForm.
Hierarchy
- class \Drupal\views_ui\Ajax\SetFormCommand implements \Drupal\Core\Ajax\CommandInterface
Expanded class hierarchy of SetFormCommand
1 file declares its use of SetFormCommand
- ViewsFormBase.php in core/modules/ views_ui/ src/ Form/ Ajax/ ViewsFormBase.php 
File
- 
              core/modules/ views_ui/ src/ Ajax/ SetFormCommand.php, line 12 
Namespace
Drupal\views_ui\AjaxView source
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,
    ];
  }
}Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title | 
|---|---|---|---|---|
| SetFormCommand::$url | protected | property | The URL of the form. | |
| SetFormCommand::render | public | function | Return an array to be run through json_encode and sent to the client. | Overrides CommandInterface::render | 
| SetFormCommand::__construct | public | function | Constructs a SetFormCommand object. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
