collection-8.x-1.x-dev/src/Event/CollectionCreateEvent.php
src/Event/CollectionCreateEvent.php
<?php
namespace Drupal\collection\Event;
use Drupal\collection\Entity\CollectionInterface;
use Drupal\Component\EventDispatcher\Event;
/**
* Event that is fired when a collection is saved.
*/
class CollectionCreateEvent extends Event {
/**
* The collection.
*
* @var \Drupal\collection\Entity\CollectionInterface
*/
public $collection;
/**
* Constructs the object.
*
* @param \Drupal\collection\Entity\CollectionInterface $collection
* The collection being created.
*/
public function __construct(CollectionInterface $collection) {
$this->collection = $collection;
}
}
