Elgg  Version master
Public Member Functions | List of all members
Elgg\Router\Middleware\GroupToolGatekeeper Class Reference

Check if the current route has a group_tool configured and that the group tool is enabled for the (group) page owner. More...

Inheritance diagram for Elgg\Router\Middleware\GroupToolGatekeeper:
Elgg\Router\Middleware\GroupPageOwnerGatekeeper Elgg\Router\Middleware\PageOwnerGatekeeper

Public Member Functions

 __invoke (\Elgg\Request $request)
 {Validate the current request.
Parameters
\Elgg\Request$requestthe current request
Returns
void
Exceptions
EntityNotFoundException
} More...
 

Additional Inherited Members

- Protected Member Functions inherited from Elgg\Router\Middleware\GroupPageOwnerGatekeeper
 getType ()
 Returns the type of the page owner to validate.
Returns
string
More...
 
- Protected Member Functions inherited from Elgg\Router\Middleware\PageOwnerGatekeeper
 assert (\Elgg\Request $request, Route $route)
 Performs assertions. More...
 
 assertPageOwner ()
 Asserts the pageowner. More...
 
 getSubtype ()
 Returns the subtype of the page owner to validate. More...
 
- Protected Attributes inherited from Elgg\Router\Middleware\PageOwnerGatekeeper
ElggEntity $page_owner
 

Detailed Description

Check if the current route has a group_tool configured and that the group tool is enabled for the (group) page owner.

Since
7.0

Definition at line 13 of file GroupToolGatekeeper.php.

Member Function Documentation

◆ __invoke()

Elgg\Router\Middleware\GroupToolGatekeeper::__invoke ( \Elgg\Request  $request)

{Validate the current request.

Parameters
\Elgg\Request$requestthe current request
Returns
void
Exceptions
EntityNotFoundException
}

Exceptions
GroupToolGatekeeperException
HttpException

Reimplemented from Elgg\Router\Middleware\PageOwnerGatekeeper.

Definition at line 20 of file GroupToolGatekeeper.php.


The documentation for this class was generated from the following file: