You are here

public function Flagging::getFlaggableId in Flag 8.4

Gets the entity ID of the flaggable.

Return value

string A string containing the flaggable ID.

Overrides FlaggingInterface::getFlaggableId

1 call to Flagging::getFlaggableId()
Flagging::getFlaggable in src/Entity/Flagging.php
Returns the flaggable entity.

File

src/Entity/Flagging.php, line 93

Class

Flagging
Provides the flagging content entity.

Namespace

Drupal\flag\Entity

Code

public function getFlaggableId() {
  return $this
    ->get('entity_id')->value;
}