You are here

function _social_content_report_submit in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.0.x modules/social_features/social_content_report/social_content_report.module \_social_content_report_submit()
  2. 10.1.x modules/social_features/social_content_report/social_content_report.module \_social_content_report_submit()
  3. 10.2.x modules/social_features/social_content_report/social_content_report.module \_social_content_report_submit()

Back to the last page which isn't loaded from a modal window.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

1 string reference to '_social_content_report_submit'
social_content_report_form_alter in modules/social_features/social_content_report/social_content_report.module
Implements hook_form_alter().

File

modules/social_features/social_content_report/social_content_report.module, line 91
The Social Content Report module file.

Code

function _social_content_report_submit(array $form, FormStateInterface $form_state) {
  $form_state
    ->setRedirectUrl(Url::fromUri($form_state
    ->get('referer')));
}