Showing A Flash Message On Admin Entries Listing (Craft 3) I've written a plugin that imports a CSV and creates entries from that for a client. I'm wanting to redirect them to the entries listing page after (i.e. /admin/entries/tvListings) and show a flash message saying "X TV listings imported.".

So this is a 2 parter:


How do you set flash data in Craft 3.
Is there a default flash key that'll show as soon as I land on the entries listing page?


Thanks.
To show a message 

Craft::$app-&gt;getSession()-&gt;setNotice($message);


To show an error

Craft::$app-&gt;session-&gt;setError($message);


There is no "default" key that is always shown or something like that. You just use the function and set a message -> the next time the user visits any page the message is shown.