Skip to main content
1 of 4

Redirect:

// Symfony\Component\HttpFoundation\RedirectResponse; $response = new RedirectResponse($url); $response->send();


**Messeges using static service:**

\Drupal::messenger()->addStatus($message);


**Other equivalents:**

addMessage(), addError(), addWarning().


**References:**

RedirectResponse

Drupal::messenger

MessengerInterface