class EntityPreforwardEvent in Forward 8
Same name and namespace in other branches
- 8.3 src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent
- 8.2 src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent
- 4.x src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent
- 4.0.x src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent
Event that is fired when an entity is forwarded.
Hierarchy
- class \Drupal\forward\Event\EntityPreforwardEvent extends \Symfony\Component\EventDispatcher\GenericEvent
Expanded class hierarchy of EntityPreforwardEvent
1 file declares its use of EntityPreforwardEvent
- ForwardForm.php in src/Form/ ForwardForm.php 
File
- src/Event/ EntityPreforwardEvent.php, line 12 
Namespace
Drupal\forward\EventView source
class EntityPreforwardEvent extends GenericEvent {
  const EVENT_NAME = 'forward_entity_preforward';
  /**
   * 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 | 
|---|---|---|---|---|
| EntityPreforwardEvent:: | public | property | The user account. | |
| EntityPreforwardEvent:: | public | property | The arguments. | |
| EntityPreforwardEvent:: | public | property | The entity. | |
| EntityPreforwardEvent:: | constant | |||
| EntityPreforwardEvent:: | public | function | Constructs the object. | 
