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