EntityForwardEvent.php in Forward 4.x
File
src/Event/EntityForwardEvent.php
View source
<?php
namespace Drupal\forward\Event;
use Drupal\Core\Entity\EntityInterface;
use Drupal\user\UserInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class EntityForwardEvent extends GenericEvent {
const EVENT_NAME = 'forward_entity_forward';
public $account;
public $entity;
public $arguments;
public function __construct(UserInterface $account, EntityInterface $entity, array $arguments) {
$this->account = $account;
$this->entity = $entity;
$this->arguments = $arguments;
}
}