Yii2 parse action name from referer url
<p>I want to check condition on previous action name. I got the previous action url from <code>Yii::$app-&gt;request-&gt;referrer</code>.
Now i want to parse only action name Or there is another way to directly get referer action name.</p>