public function Flagging::getFlagId in Flag 8.4
Gets the flag ID for the parent flag.
Return value
string The flag ID.
Overrides FlaggingInterface::getFlagId
1 call to Flagging::getFlagId()
- Flagging::getFlag in src/
Entity/ Flagging.php - Returns the parent flag entity.
File
- src/
Entity/ Flagging.php, line 72
Class
- Flagging
- Provides the flagging content entity.
Namespace
Drupal\flag\EntityCode
public function getFlagId() {
return $this
->get('flag_id')->target_id;
}