You are here

class EntityForwardEvent in Forward 8

Same name and namespace in other branches
  1. 8.3 src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
  2. 8.2 src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
  3. 4.x src/Event/EntityForwardEvent.php \Drupal\forward\Event\EntityForwardEvent
  4. 4.0.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\Event
View 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

Namesort descending Modifiers Type Description Overrides
EntityForwardEvent::$account public property The user account.
EntityForwardEvent::$arguments public property The arguments.
EntityForwardEvent::$entity public property The entity.
EntityForwardEvent::EVENT_NAME constant
EntityForwardEvent::__construct public function Constructs the object.