PageAttachmentsEvent.php in Hook Event Dispatcher 8
File
src/Event/Page/PageAttachmentsEvent.php
View source
<?php
namespace Drupal\hook_event_dispatcher\Event\Page;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
class PageAttachmentsEvent extends Event implements EventInterface {
private $attachments;
public function __construct(array &$attachments) {
$this->attachments =& $attachments;
}
public function &getAttachments() {
return $this->attachments;
}
public function setAttachments(array $attachments) {
$this->attachments = $attachments;
}
public function getDispatcherType() {
return HookEventDispatcherInterface::PAGE_ATTACHMENTS;
}
}