You are here

public function SettingsForm::ajaxPluginFormCallback in Entity Print 8.2

Same name and namespace in other branches
  1. 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\Form

Code

public function ajaxPluginFormCallback(&$form, FormStateInterface $form_state) {
  $export_type = $form_state
    ->getTriggeringElement()['#name'];
  return $form['entity_print'][$export_type . '_config'];
}