PrivateMessageMapper.php in Open Social 8.9
Same filename and directory in other branches
- 8.2 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 8.3 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 8.4 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 8.5 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 8.6 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 8.7 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 8.8 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 10.3.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 10.0.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 10.1.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
- 10.2.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php
Namespace
Drupal\social_private_message\MapperFile
modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.phpView source
<?php
namespace Drupal\social_private_message\Mapper;
use Drupal\private_message\Mapper\PrivateMessageMapper as PrivateMessageMapperBase;
use Drupal\social_profile\SocialProfileTrait;
/**
* Class PrivateMessageMapper.
*
* @package Drupal\social_private_message\Mapper
*/
class PrivateMessageMapper extends PrivateMessageMapperBase {
use SocialProfileTrait;
/**
* {@inheritdoc}
*/
public function getUserIdsFromString($string, $count) {
if ($this->currentUser
->hasPermission('access user profiles') && $this->currentUser
->hasPermission('use private messaging system')) {
return $this
->getUserIdsFromName($string, $count);
}
return [];
}
}
Classes
Name | Description |
---|---|
PrivateMessageMapper | Class PrivateMessageMapper. |