function tvi_view_display_ajax_handler in Taxonomy Views Integrator 8
AJAX handler for vocabulary and term forms.
Parameters
array $form: Settings form render array.
\Drupal\Core\Form\FormStateInterface $form_state: Submitted form state.
Return value
mixed Local render array for ajax callback.
1 string reference to 'tvi_view_display_ajax_handler'
- _tvi_settings_form in ./
tvi.module - Helper function to construct the forms for both term and vocab edit forms.
File
- ./
tvi.module, line 220 - Allow views to be used instead of default taxonomy term page behavior.
Code
function tvi_view_display_ajax_handler(array $form, FormStateInterface $form_state) {
$form['tvi']['tvi_view_display']['#value'] = '';
$form_state
->setRebuild();
return $form['tvi']['tvi_view_display'];
}