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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ActionEvent:: |
private | property | Library transaction. | |
ActionEvent:: |
public | function | Returns the kernel in which this event was thrown. | |
ActionEvent:: |
public | function | Constructor. |