You are here

public function EntityForm::updateFormMode 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::updateFormMode()

AJAX callback for the Form Mode dropdown update.

1 call to EntityForm::updateFormMode()
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 219

Class

EntityForm
Provides entity form widget.

Namespace

Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget

Code

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