$getWebsiteLoginService()

Overview

public any function $getWebsiteLoginService()

Returns the Website login service. This can be used to check logged in user details, etc. See Website users and permissioning for a full guide.

Example

if ( $getWebsiteLoginService().isImpersonated() ) {
        // ...
}