Backend\Modules\Authentication\Actions\Logout::execute PHP Method

execute() public method

Execute the action
public execute ( )
    public function execute()
    {
        parent::execute();
        BackendAuthentication::logout();
        // redirect to login-screen
        $this->redirect(BackendModel::createURLForAction('Index', $this->getModule()));
    }
Logout