You are here

public function GroupRoleStorage::loadSynchronizedByGroupTypes in Group 8

Same name and namespace in other branches
  1. 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\Storage

Code

public function loadSynchronizedByGroupTypes(array $group_type_ids) {
  return $this
    ->loadMultiple($this->groupRoleSynchronizer
    ->getGroupRoleIdsByGroupTypes($group_type_ids));
}