You are here

public function FlagEventBase::getFlag in Flag 8.4

Get the flag entity related to the event.

Return value

\Drupal\flag\FlagInterface The flag related to the event.

File

src/Event/FlagEventBase.php, line 37

Class

FlagEventBase
Base Event from which other flag event are defined.

Namespace

Drupal\flag\Event

Code

public function getFlag() {
  return $this->flag;
}