|
|
@ -67,7 +67,7 @@ class RoblibSearchForm extends FormBase{ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function submitForm(array &$form, FormStateInterface $form_state) { |
|
|
|
public function submitForm(array &$form, FormStateInterface $form_state) { |
|
|
|
$search_string = $form_state->getValue('roblib_search_simple_search_query'); |
|
|
|
$search_string = $form_state->getValue('roblib_search_simple_search_query'); |
|
|
|
$search_string = Html::escape($search_string); |
|
|
|
//$search_string = Html::escape($search_string); |
|
|
|
$message = Message::create(['template' => 'roblib_search_message_template', |
|
|
|
$message = Message::create(['template' => 'roblib_search_message_template', |
|
|
|
'uid' => \Drupal::currentUser()->id()]); |
|
|
|
'uid' => \Drupal::currentUser()->id()]); |
|
|
|
$message->set('field_ip_address', \Drupal::request()->getClientIp()); |
|
|
|
$message->set('field_ip_address', \Drupal::request()->getClientIp()); |
|
|
|