StateUtility

Helper class to check if the admin panel is enabled and active from outside

Useful for initialization, checks in early hooks or middleware implementations

Table of Contents

Methods

isActivatedForUser()  : bool
Checks if adminPanel was configured to be shown
isActivatedInTypoScript()  : bool
isHiddenForUser()  : bool
isOpen()  : bool
Returns true if admin panel was activated (switched "on" via GUI)

Methods

isActivatedForUser()

Checks if adminPanel was configured to be shown

public static isActivatedForUser() : bool
Return values
bool

isActivatedInTypoScript()

public static isActivatedInTypoScript() : bool
Return values
bool

isHiddenForUser()

public static isHiddenForUser() : bool
Return values
bool

isOpen()

Returns true if admin panel was activated (switched "on" via GUI)

public static isOpen() : bool
Return values
bool

        
On this page

Search results