private function KernelEventListener::canRequestGetNode in Permissions by Term 8.2
Same name and namespace in other branches
- 8 src/Listener/KernelEventListener.php \Drupal\permissions_by_term\Listener\KernelEventListener::canRequestGetNode()
1 call to KernelEventListener::canRequestGetNode()
- KernelEventListener::handleAccessToNodePages in src/
Listener/ KernelEventListener.php
File
- src/
Listener/ KernelEventListener.php, line 145
Class
- KernelEventListener
- Class KernelEventListener.
Namespace
Drupal\permissions_by_term\ListenerCode
private function canRequestGetNode(Request $request) : bool {
if (method_exists($request->attributes, 'get') && !empty($request->attributes
->get('node'))) {
if (method_exists($request->attributes
->get('node'), 'get')) {
return TRUE;
}
}
return FALSE;
}