public function SettingsForm::ajaxPluginFormCallback in Entity Print 8.2
Same name and namespace in other branches
- 8 src/Form/SettingsForm.php \Drupal\entity_print\Form\SettingsForm::ajaxPluginFormCallback()
Ajax plugin form callback.
File
- src/
Form/ SettingsForm.php, line 169
Class
- SettingsForm
- Defines a form that configures Entity Print settings.
Namespace
Drupal\entity_print\FormCode
public function ajaxPluginFormCallback(&$form, FormStateInterface $form_state) {
$export_type = $form_state
->getTriggeringElement()['#name'];
return $form['entity_print'][$export_type . '_config'];
}