You are here

public function FlagListItem::getConnectedEntityId in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/Entity/FlagListItem.php \Drupal\flag_lists\Entity\FlagListItem::getConnectedEntityId()

Gets the entity Id this Flag List Item is connected to.

Return value

int Id of the Entity connected.

Overrides FlagListItemInterface::getConnectedEntityId

File

src/Entity/FlagListItem.php, line 184

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

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