public function AccessCheck::dispatchDeniedEventOnRestricedAccess in Permissions by Term 8.2
File
- src/
Service/ AccessCheck.php, line 229
Class
- AccessCheck
- AccessCheckService class.
Namespace
Drupal\permissions_by_term\ServiceCode
public function dispatchDeniedEventOnRestricedAccess(Node $node, string $langcode) : void {
if (!$this
->canUserAccessByNode($node, false, $langcode)) {
$this
->dispatchDeniedEvent($node
->id());
}
}