Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have 2 content types: ContentType1 and ContentType2. After filling out the fields for ContentType2 and clicking the save button, I have been asked to redirect to ContentType1 page using setRedirect in the hook_form_alter().
So I have used something like this, but the redirect does not work:
function mymodule_form_alter(&$form, FormStateInterface $form_state, $form_id) {
I installed Varbase 8.7.0 distribution. After the installation, I receive the following warning:
"All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. "