SilverStripe\Subsites\Middleware\InitStateMiddleware
Synopsis
class InitStateMiddleware
implements
HTTPMiddleware
{
- // members
- private static array $admin_url_paths = ;
- // methods
- public void process()
- public bool getIsAdmin()
- protected int detectSubsiteId()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Implements
- SilverStripe\Control\Middleware\HTTPMiddleware
Members
private
- $admin_url_paths
—
array
URL paths that should be considered as admin only, i.e. not frontend
Methods
protected
- detectSubsiteId() — Use the given request to detect the current subsite ID
public
- getIsAdmin() — Determine whether the website is being viewed from an admin protected area or not
- process()