You are here

protected function FlagListsService::getFlagForListByIds in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/FlagListsService.php \Drupal\flag_lists\FlagListsService::getFlagForListByIds()

Loads Flag For Lists by ids.

Parameters

int[] $ids: The Ids of the Flag For Lists to load.

Return value

Drupal\flag_lists\Entity\FlagForList[] The loaded Flag For Lists.

1 call to FlagListsService::getFlagForListByIds()
FlagListsService::getAllFlagForList in src/FlagListsService.php
Get all Flag For List, i.e. all Flags tagged as available.

File

src/FlagListsService.php, line 191

Class

FlagListsService
Class FlagForList service.

Namespace

Drupal\flag_lists

Code

protected function getFlagForListByIds(array $ids) {
  return $this->entityTypeManager
    ->getStorage('flag_for_list')
    ->loadMultiple($ids);
}