You are here

public function ReactionRuleAddForm::bundleSelectCallback in Rules 8.3

Ajax callback for the entity bundle restriction select element.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

File

src/Form/ReactionRuleAddForm.php, line 157

Class

ReactionRuleAddForm
Provides a form to add a reaction rule.

Namespace

Drupal\rules\Form

Code

public function bundleSelectCallback(array $form, FormStateInterface $form_state) {

  // Replace the entire container placeholder element.
  return $form['selection']['container'];
}