You are here

protected function PrivateMessageMapper::getCanUseRids in Private Message 8.2

Returns role ids with permission to use PM system.

Return value

int[]|string[] Array of role IDs.

File

src/Mapper/PrivateMessageMapper.php, line 309

Class

PrivateMessageMapper
Interface for the Private Message Mapper class.

Namespace

Drupal\private_message\Mapper

Code

protected function getCanUseRids() {
  $use_pm_permission = 'use private messaging system';
  $roles = user_role_names(FALSE, $use_pm_permission);
  return array_keys($roles);
}