You are here

public function EntityForm::updateBundle in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php \Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget\EntityForm::updateBundle()

AJAX callback for bundle dropdown update.

1 call to EntityForm::updateBundle()
EntityForm::updateFormElements in modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php
AJAX callback to update the two form elements: bundle and form_mode.

File

modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php, line 212

Class

EntityForm
Provides entity form widget.

Namespace

Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget

Code

public function updateBundle($form, FormStateInterface $form_state) {
  return $form['widgets']['table'][$this
    ->uuid()]['form']['bundle'];
}