You are here

public function FlagListsService::getFlagListItems in Flag Lists 8

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

Get Flag List Items.

Parameters

int[] $ids: The Flag List Item ids to load.

Return value

Drupal\flag_lists\Entity\FlagListItem[] An array of Flag List Items.

File

src/FlagListsService.php, line 258

Class

FlagListsService
Class FlagForList service.

Namespace

Drupal\flag_lists

Code

public function getFlagListItems(array $ids) {
  return $this->entityTypeManager
    ->getStorage('flag_list_item')
    ->loadMultiple($ids);
}