You are here

public function UpdateOptionsCommand::__construct in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Ajax/UpdateOptionsCommand.php \Drupal\business_rules\Ajax\UpdateOptionsCommand::__construct()

UpdateOptionsCommand constructor.

Parameters

string $elementId: The element html id.

array $options: The element options [key, value].

string $formatter: The field formatter.

File

src/Ajax/UpdateOptionsCommand.php, line 30

Class

UpdateOptionsCommand
Ajax command to update form options.

Namespace

Drupal\business_rules\Ajax

Code

public function __construct($elementId, array $options, $formatter) {
  $this->elementId = $elementId;
  $this->options = $options;
  $this->formatter = $formatter;
}