You are here

public function FlagListItem::setFlagList in Flag Lists 4.0.x

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

Sets the Flag List for this item.

Parameters

string $flagList: The Flag List name.

Return value

\Drupal\flag_lists\Entity\FlagListItemInterface The called Flag list item entity.

Overrides FlagListItemInterface::setFlagList

File

src/Entity/FlagListItem.php, line 176

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

public function setFlagList($flagList) {
  $this
    ->set('flag_list', $flagList);
  return $this;
}