You are here

public function StringoverridesAdminForm::addExtraRowAjaxCallback in String Overrides 8

Callback for Ajax functionality.

Parameters

array $form: Drupal form.

\Drupal\Core\Form\FormStateInterface $form_state: Drupal form state object.

Return value

mixed Form element for ajax response, it will replace table in browser.

File

src/Form/StringoverridesAdminForm.php, line 218

Class

StringoverridesAdminForm
Class StringoverridesAdminForm.

Namespace

Drupal\stringoverrides\Form

Code

public function addExtraRowAjaxCallback(array $form, FormStateInterface $form_state) {
  return $form['translations_table'];
}