public function GenericEvent::__construct

Encapsulate an event with $subject, $args, and $data.

Parameters

mixed $subject The subject of the event, usually an object.:

array $arguments Arguments to store in the event.:

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/GenericEvent.php, line 43

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function __construct($subject = null, array $arguments = array()) {
  $this->subject = $subject;
  $this->arguments = $arguments;
}