class EntityForwardEvent in Forward 4.0.x
Same name and namespace in other branches
- 8.3 src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
- 8 src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
- 8.2 src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
- 4.x src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
Event that is fired when an entity is forwarded.
Hierarchy
- class \Drupal\forward\Event\EntityForwardEvent extends \Symfony\Component\EventDispatcher\GenericEvent
Expanded class hierarchy of EntityForwardEvent
1 file declares its use of EntityForwardEvent
- ForwardForm.php in src/
Form/ ForwardForm.php
File
- src/
Event/ EntityForwardEvent.php, line 12
Namespace
Drupal\forward\EventView source
class EntityForwardEvent extends GenericEvent {
const EVENT_NAME = 'forward_entity_forward';
/**
* The user account.
*
* @var \Drupal\user\UserInterface
*/
public $account;
/**
* The entity.
*
* @var \Drupal\Core\Entity\EntityInterface
*/
public $entity;
/**
* The arguments.
*
* @var array
*/
public $arguments;
/**
* Constructs the object.
*/
public function __construct(UserInterface $account, EntityInterface $entity, array $arguments) {
$this->account = $account;
$this->entity = $entity;
$this->arguments = $arguments;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityForwardEvent:: |
public | property | The user account. | |
EntityForwardEvent:: |
public | property | The arguments. | |
EntityForwardEvent:: |
public | property | The entity. | |
EntityForwardEvent:: |
constant | |||
EntityForwardEvent:: |
public | function | Constructs the object. |