public function InvokeCommand::__construct
public InvokeCommand::__construct($selector, $method, array $arguments = array())
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 54
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!InvokeCommand.php/function/InvokeCommand::__construct/8.1.x