You are here

public function Flagging::getFlaggableType in Flag 8.4

Gets the entity type of the flaggable.

Return value

string A string containing the flaggable type ID.

Overrides FlaggingInterface::getFlaggableType

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

File

src/Entity/Flagging.php, line 86

Class

Flagging
Provides the flagging content entity.

Namespace

Drupal\flag\Entity

Code

public function getFlaggableType() {
  return $this
    ->get('entity_type')->value;
}