beforeLogout() protected method
This method is invoked when calling logout() to log out a user.
The default implementation will trigger the EVENT_BEFORE_LOGOUT event. If you override this method, make sure you call the parent implementation so that the event is triggered.
protected boolean beforeLogout ( $identity ) | ||
---|---|---|
$identity | yii\web\IdentityInterface |
The user identity information |
return | boolean |
Whether the user should continue to be logged out |
Please login to continue.