You are here

class EntityPreforwardEvent in Forward 4.x

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

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