You are here

public function FlagEventBase::__construct in Flag 8.4

Build the flag event class.

Parameters

\Drupal\flag\FlagInterface $flag: The flag to be acted upon.

File

src/Event/FlagEventBase.php, line 27

Class

FlagEventBase
Base Event from which other flag event are defined.

Namespace

Drupal\flag\Event

Code

public function __construct(FlagInterface $flag) {
  $this->flag = $flag;
}