public function Groups::getCache in Rocket.Chat 8.2
Overrides CollectionInterface::getCache
File
- modules/
rocket_chat_api/ src/ RocketChat/ Collection/ Groups.php, line 39
Class
Namespace
Drupal\rocket_chat_api\RocketChat\CollectionCode
public function getCache($forceReload = FALSE) {
$this
->refreshCache(FALSE);
$idList = $this->state
->get(self::LIST, []);
foreach ($idList as $index => $id) {
$idList[$index] = self::GROUP . $id;
}
$groups = $this->state
->getMultiple($idList);
if (empty($groups)) {
$groups = [];
}
return $groups;
}