You are here

PermissionsByTermDeniedEvent.php in Permissions by Term 8

Same filename and directory in other branches
  1. 8.2 src/Event/PermissionsByTermDeniedEvent.php

File

src/Event/PermissionsByTermDeniedEvent.php
View source
<?php

namespace Drupal\permissions_by_term\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * Class PermissionsByTermDeniedEvent
 *
 * @package Drupal\permissions_by_term\Event
 */
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;
  }

}

Classes

Namesort descending Description
PermissionsByTermDeniedEvent Class PermissionsByTermDeniedEvent