You are here

class ActionEvent in Library 8

Returns available action.

Hierarchy

  • class \Drupal\library\Event\ActionEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of ActionEvent

3 files declare their use of ActionEvent
LibraryAlterTransactionForm.php in src/Form/LibraryAlterTransactionForm.php
LibraryCheckOutBulkForm.php in src/Form/LibraryCheckOutBulkForm.php
LibraryCheckoutForm.php in src/Form/LibraryCheckoutForm.php

File

src/Event/ActionEvent.php, line 11

Namespace

Drupal\library\Event
View source
class ActionEvent extends Event {

  /**
   * Library transaction.
   *
   * @var \Drupal\library\Entity\LibraryTransaction
   */
  private $transaction;

  /**
   * Constructor.
   */
  public function __construct(LibraryTransaction $transaction) {
    $this->transaction = $transaction;
  }

  /**
   * Returns the kernel in which this event was thrown.
   *
   * @return \Drupal\library\Entity\LibraryTransaction
   *   Transaction.
   */
  public function getTransaction() {
    return $this->transaction;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ActionEvent::$transaction private property Library transaction.
ActionEvent::getTransaction public function Returns the kernel in which this event was thrown.
ActionEvent::__construct public function Constructor.