function AddEventFormTrait::bundleSelectCallback

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/AddEventFormTrait.php, line 125

Class

AddEventFormTrait
Trait for adding an event.

Namespace

Drupal\rules\Form

Code

public function bundleSelectCallback(array $form, FormStateInterface $form_state) {
    // Replace the entire container placeholder element.
    return $form['selection']['container'];
}