public function PrivateMessageMapperInterface::checkPrivateMessageMemberExists in Private Message 8
Same name and namespace in other branches
- 8.2 src/Mapper/PrivateMessageMapperInterface.php \Drupal\private_message\Mapper\PrivateMessageMapperInterface::checkPrivateMessageMemberExists()
Determine whether or not the given username exists.
The user must also have the 'use private messaging system' permission.
Parameters
string $username: The username to be validated.
Return value
bool
- TRUE if the belongs to an account that has the 'use private messaging system' permission
- FALSE if the account doesn't exist, or does not have the required permission
1 method overrides PrivateMessageMapperInterface::checkPrivateMessageMemberExists()
- PrivateMessageMapper::checkPrivateMessageMemberExists in src/
Mapper/ PrivateMessageMapper.php - Determine whether or not the given username exists.
File
- src/
Mapper/ PrivateMessageMapperInterface.php, line 124
Class
- PrivateMessageMapperInterface
- Interface for the Private Message Thread mapper class.
Namespace
Drupal\private_message\MapperCode
public function checkPrivateMessageMemberExists($username);