You are here

public function FlagListsService::getFlaggingCollectionById in Flag Lists 8

Same name and namespace in other branches
  1. 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_lists

Code

public function getFlaggingCollectionById($flag_id) {
  return $this->entityTypeManager
    ->getStorage('flagging_collection')
    ->load($flag_id);
}