You are here

public function AccessStorage::getUserIdsByNames in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::getUserIdsByNames()

Parameters

array $aUserNames:

Return value

array

File

src/Service/AccessStorage.php, line 223

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

public function getUserIdsByNames($aUserNames) {
  $aUserIds = [];
  foreach ($aUserNames as $userName) {
    $iUserId = $this
      ->getUserIdByName($userName)['uid'];
    $aUserIds[] = $iUserId['uid'];
  }
  return $aUserIds;
}