public function InvokeCommand::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Ajax/InvokeCommand.php \Drupal\Core\Ajax\InvokeCommand::__construct()
Constructs an InvokeCommand object.
Parameters
string $selector: A jQuery selector.
string $method: The name of a jQuery method to invoke.
array $arguments: An optional array of arguments to pass to the method.
File
- core/
lib/ Drupal/ Core/ Ajax/ InvokeCommand.php, line 59 - Contains \Drupal\Core\Ajax\InvokeCommand.
Class
- InvokeCommand
- AJAX command for invoking an arbitrary jQuery method.
Namespace
Drupal\Core\AjaxCode
public function __construct($selector, $method, array $arguments = array()) {
$this->selector = $selector;
$this->method = $method;
$this->arguments = $arguments;
}