public function GenericEvent::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/GenericEvent.php \Symfony\Component\EventDispatcher\GenericEvent::__construct()
Encapsulate an event with $subject and $args.
Parameters
mixed $subject The subject of the event, usually an object.:
array $arguments Arguments to store in the event.:
2 methods override GenericEvent::__construct()
- EntityTypeEvent::__construct in core/
lib/ Drupal/ Core/ Entity/ EntityTypeEvent.php - Constructs a new EntityTypeEvent.
- FieldStorageDefinitionEvent::__construct in core/
lib/ Drupal/ Core/ Field/ FieldStorageDefinitionEvent.php - Constructs a new FieldStorageDefinitionEvent.
File
- vendor/
symfony/ event-dispatcher/ GenericEvent.php, line 43
Class
- GenericEvent
- Event encapsulation class.
Namespace
Symfony\Component\EventDispatcherCode
public function __construct($subject = null, array $arguments = array()) {
$this->subject = $subject;
$this->arguments = $arguments;
}