public function FlagListsService::getFlaggingCollectionById in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/FlagListsService.php \Drupal\flag_lists\FlagListsService::getFlaggingCollectionById()
Get a Flagging Collection by Id.
Parameters
string $flag_id: The flag Id of the Flagging Collection to load.
Return value
Drupal\flag_lists\Entity\FlaggingCollection The loaded Flagging Collection.
File
- src/
FlagListsService.php, line 178
Class
- FlagListsService
- Class FlagForList service.
Namespace
Drupal\flag_listsCode
public function getFlaggingCollectionById($flag_id) {
return $this->entityTypeManager
->getStorage('flagging_collection')
->load($flag_id);
}