UnflaggingEvent.php in Flag 8.4
Namespace
Drupal\flag\EventFile
src/Event/UnflaggingEvent.phpView source
<?php
namespace Drupal\flag\Event;
use Symfony\Component\EventDispatcher\Event;
/**
* Event for when a flagging is deleted.
*/
class UnflaggingEvent extends Event {
/**
* An array of flaggings.
*
* @var \Drupal\flag\FlaggingInterface[]
*/
protected $flaggings = [];
/**
* Builds a new UnflaggingEvent.
*
* @param \Drupal\flag\FlaggingInterface[] $flaggings
* The flaggings.
*/
public function __construct(array $flaggings) {
$this->flaggings = $flaggings;
}
/**
* Returns the flagging associated with the Event.
*
* @return \Drupal\flag\FlaggingInterface[]
* The flaggings.
*/
public function getFlaggings() {
return $this->flaggings;
}
}
Classes
Name | Description |
---|---|
UnflaggingEvent | Event for when a flagging is deleted. |