You are here

public function FlagListItem::getFlagList in Flag Lists 8

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

Gets the Flag List for this item.

Return value

string Name of the Flag List.

Overrides FlagListItemInterface::getFlagList

File

src/Entity/FlagListItem.php, line 169

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

public function getFlagList() {
  return $this
    ->get('flag_list')->value;
}