You are here

public function LingotekManagementForm::itemsPerPageCallback in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  2. 4.0.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  3. 3.0.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  4. 3.1.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  5. 3.2.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  6. 3.3.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  7. 3.4.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  8. 3.5.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  9. 3.6.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  10. 3.7.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()
  11. 3.8.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::itemsPerPageCallback()

File

src/Form/LingotekManagementForm.php, line 363
Contains \Drupal\Lingotek\Form\LingotekManagementForm.

Class

LingotekManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

public function itemsPerPageCallback(array &$form, FormStateInterface $form_state) {
  $ajax_response = new AjaxResponse();
  $this
    ->setItemsPerPage($form_state
    ->getValue('items_per_page'));
  $ajax_response
    ->addCommand(new InvokeCommand('#lingotek-management', 'submit'));
  return $ajax_response;
}