You are here

public function FlagListsService::getFlaggingCollectionTypeById in Flag Lists 8

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

Class

FlagListsService
Class FlagForList service.

Namespace

Drupal\flag_lists

Code

public function getFlaggingCollectionTypeById($type_id) {
  return $this->entityTypeManager
    ->getStorage('flagging_collection_type')
    ->load($type_id);
}