public function FlaggingCollection::getRelatedFlag in Flag Lists 4.0.x
Same name and namespace in other branches
- 8 src/Entity/FlaggingCollection.php \Drupal\flag_lists\Entity\FlaggingCollection::getRelatedFlag()
Gets the Related Flag for the Flagging collection.
Return value
string Name of the Related Flag.
Overrides FlaggingCollectionInterface::getRelatedFlag
1 call to FlaggingCollection::getRelatedFlag()
- FlaggingCollection::postSave in src/
Entity/ FlaggingCollection.php - Acts on a saved entity before the insert or update hook is invoked.
File
- src/
Entity/ FlaggingCollection.php, line 269
Class
- FlaggingCollection
- Defines the Flagging collection entity.
Namespace
Drupal\flag_lists\EntityCode
public function getRelatedFlag() {
return $this
->get('relatedflag')->entity;
}