public function FlagListsService::getFlagForListById in Flag Lists 4.0.x
Same name and namespace in other branches
- 8 src/FlagListsService.php \Drupal\flag_lists\FlagListsService::getFlagForListById()
Get a Flag For List, i.e. the Flags tagged as available as templates.
Parameters
int $flag_id: The template id to load.
Return value
Drupal\flag_lists\Entity\FlagForList[] An array of Flag For Lists.
File
- src/
FlagListsService.php, line 159
Class
- FlagListsService
- Class FlagForList service.
Namespace
Drupal\flag_listsCode
public function getFlagForListById($flag_id) {
return $this->entityTypeManager
->getStorage('flag_for_list')
->load($flag_id);
}