You are here

public function FlagListItem::setBaseFlag in Flag Lists 8

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

Sets the Base Flag for this item.

Parameters

string $baseFlag: The Base Flag name.

Return value

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

Overrides FlagListItemInterface::setBaseFlag

File

src/Entity/FlagListItem.php, line 161

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

public function setBaseFlag($baseFlag) {
  $this
    ->set('baseflag', $baseFlag);
  return $this;
}