public function FireJavascriptCommand::__construct in Maestro 8.2
Same name and namespace in other branches
- 3.x modules/maestro_template_builder/src/Ajax/FireJavascriptCommand.php \Drupal\maestro_template_builder\Ajax\FireJavascriptCommand::__construct()
Constructs a our FireMaestroCommand.
Parameters
string $function: The javascript function you wish to call.
array $values: Keyed array of values you wish to pass back to the javascript function being called.
File
- modules/
maestro_template_builder/ src/ Ajax/ FireJavascriptCommand.php, line 39
Class
- FireJavascriptCommand
- An AJAX command for calling our own javascript functions/methods.
Namespace
Drupal\maestro_template_builder\AjaxCode
public function __construct($function, array $values) {
$this->function = $function;
$this->values = $values;
}