You are here

public function FlaggingCollection::setRelatedFlag in Flag Lists 8

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

Sets the Related Flag for this Flagging Collection.

Parameters

string $relatedFlag: The Related Flag name.

Return value

\Drupal\flag_lists\Entity\FlaggingCollectionInterface The called Flagging collection entity.

Overrides FlaggingCollectionInterface::setRelatedFlag

1 call to FlaggingCollection::setRelatedFlag()
FlaggingCollection::preSave in src/Entity/FlaggingCollection.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/FlaggingCollection.php, line 253

Class

FlaggingCollection
Defines the Flagging collection entity.

Namespace

Drupal\flag_lists\Entity

Code

public function setRelatedFlag($relatedflag) {
  return $this
    ->set('relatedflag', $relatedflag);
}