public function PrivateMessageMapperInterface::getUserIdsFromString in Private Message 8.2
Same name and namespace in other branches
- 8 src/Mapper/PrivateMessageMapperInterface.php \Drupal\private_message\Mapper\PrivateMessageMapperInterface::getUserIdsFromString()
Get a list of account IDs whose account names begin with the given string.
Only accounts that have 'Use private messaging system' permission will be returned, and the viewing user must have both 'View user information' and 'access user profiles' to get any results at all.
Parameters
string $string: The string to search for.
int $count: The number of results to return.
Return value
int[] An array of account IDs for accounts whose account names begin with the given string.
1 method overrides PrivateMessageMapperInterface::getUserIdsFromString()
- PrivateMessageMapper::getUserIdsFromString in src/
Mapper/ PrivateMessageMapper.php - Get a list of account IDs whose account names begin with the given string.
File
- src/
Mapper/ PrivateMessageMapperInterface.php, line 86
Class
- PrivateMessageMapperInterface
- Interface for the Private Message Thread mapper class.
Namespace
Drupal\private_message\MapperCode
public function getUserIdsFromString($string, $count);