You are here

public function OverviewForm::formGetAjaxOperation in Admin Audit Trail 1.0.x

Ajax callback for the operations options.

File

src/OverviewForm.php, line 312

Class

OverviewForm
Configure user settings for this site.

Namespace

Drupal\admin_audit_trail

Code

public function formGetAjaxOperation(array &$form, FormStateInterface $form_state) {
  $ajax_response = new AjaxResponse();
  $element = AdminAuditTrailStorage::formGetOperations($form_state
    ->getValue('type'));
  $ajax_response
    ->addCommand(new HtmlCommand('#operation-dropdown-replace', $element));
  return $ajax_response;
}