You are here

function beautytips_textinput_form_id_off in BeautyTips 8

Same name and namespace in other branches
  1. 6.2 includes/textinput.inc \beautytips_textinput_form_id_off()
  2. 7.2 includes/textinput.inc \beautytips_textinput_form_id_off()

Menu callback. Turns off the display of form-ids.

1 string reference to 'beautytips_textinput_form_id_off'
beautytips_textinput_menu_items in includes/textinput.inc

File

includes/textinput.inc, line 119

Code

function beautytips_textinput_form_id_off() {
  \Drupal::state()
    ->set('beautytips_show_form', FALSE);
  $url = \Drupal::service('redirect.destination')
    ->getAsArray();
  $destination = $url ? $url : 'admin/settings/beautytips';
  return new RedirectResponse(Url::fromRoute($destination));
}