You are here

public function UpdateOptionsCommand::__construct in Business Rules 2.x

Same name and namespace in other branches
  1. 8 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.

bool $multiple: The 'multiple' attribute of select.

File

src/Ajax/UpdateOptionsCommand.php, line 54

Class

UpdateOptionsCommand
Ajax command to update form options.

Namespace

Drupal\business_rules\Ajax

Code

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