You are here

class PermissionsByTermDeniedEvent in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 src/Event/PermissionsByTermDeniedEvent.php \Drupal\permissions_by_term\Event\PermissionsByTermDeniedEvent

Class PermissionsByTermDeniedEvent

@package Drupal\permissions_by_term\Event

Hierarchy

Expanded class hierarchy of PermissionsByTermDeniedEvent

2 files declare their use of PermissionsByTermDeniedEvent
AccessCheck.php in src/Service/AccessCheck.php
KernelEventListener.php in src/Listener/KernelEventListener.php

File

src/Event/PermissionsByTermDeniedEvent.php, line 12

Namespace

Drupal\permissions_by_term\Event
View source
class PermissionsByTermDeniedEvent extends Event {
  const NAME = 'permissions_by_term.access.denied';

  /**
   * @var int
   */
  protected $nid;

  /**
   * PermissionsByTermDeniedEvent constructor.
   *
   * @param int $nid
   */
  public function __construct($nid) {
    $this->nid = $nid;
  }

  /**
   * @return int
   */
  public function getNid() {
    return $this->nid;
  }

}

Members