protected function FlagService::getFlagsByIds in Flag 8.4
Loads flag entities given their IDs.
Parameters
int[] $ids: The flag IDs.
Return value
\Drupal\flag\FlagInterface[] An array of flags.
1 call to FlagService::getFlagsByIds()
- FlagService::getAllFlags in src/
FlagService.php - List all flags available.
File
- src/
FlagService.php, line 372
Class
- FlagService
- Flag service.
Namespace
Drupal\flagCode
protected function getFlagsByIds(array $ids) {
return $this->entityTypeManager
->getStorage('flag')
->loadMultiple($ids);
}