$getAdminLoginService()

Overview

public any function $getAdminLoginService()

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

Example

if ( $getAdminLoginService().isSystemUser() ) {
        // ...
}