public function GroupRoleStorage::loadSynchronizedByGroupTypes in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/Storage/GroupRoleStorage.php \Drupal\group\Entity\Storage\GroupRoleStorage::loadSynchronizedByGroupTypes()
Retrieves all synchronized GroupRole entities by group types.
Parameters
string[] $group_type_ids: The list of group type IDs to load the synchronized group roles for.
Return value
\Drupal\group\Entity\GroupRoleInterface[] The group roles matching the group types.
Overrides GroupRoleStorageInterface::loadSynchronizedByGroupTypes
File
- src/
Entity/ Storage/ GroupRoleStorage.php, line 143
Class
- GroupRoleStorage
- Defines the storage handler class for group role entities.
Namespace
Drupal\group\Entity\StorageCode
public function loadSynchronizedByGroupTypes(array $group_type_ids) {
return $this
->loadMultiple($this->groupRoleSynchronizer
->getGroupRoleIdsByGroupTypes($group_type_ids));
}