27 $route = $request->getHttpRequest()->getRoute();
28 if (!$route instanceof
Route) {
33 $route->setDefault(
'_detect_page_owner',
true);
35 $page_owner = $route->resolvePageOwner();
42 $this->
assert($request, $route);
64 if (!empty($this->
getType()) && $this->page_owner->getType() !== $this->
getType()) {
68 if (!empty($this->
getSubtype()) && $this->page_owner->getSubtype() !== $this->
getType()) {
72 _elgg_services()->gatekeeper->assertAccessibleEntity($this->page_owner);
getSubtype()
Returns the subtype of the page owner to validate.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
assert(\Elgg\Request $request, Route $route)
Performs assertions.
__invoke(\Elgg\Request $request)
Validate the current request.
getType()
Returns the type of the page owner to validate.
Aggregate action for saving settings.
_elgg_services()
Get the global service provider.
Thrown when entity can not be found.
assertPageOwner()
Asserts the pageowner.
Check if the current route has a page owner entity.