You are here

class PrivateMessageMapper in Open Social 8.2

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  2. 8.3 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  3. 8.4 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  4. 8.5 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  5. 8.6 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  6. 8.7 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  7. 8.8 modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  8. 10.3.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  9. 10.0.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  10. 10.1.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper
  11. 10.2.x modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php \Drupal\social_private_message\Mapper\PrivateMessageMapper

Class PrivateMessageMapper.

@package Drupal\social_private_message\Mapper

Hierarchy

Expanded class hierarchy of PrivateMessageMapper

File

modules/social_features/social_private_message/src/Mapper/PrivateMessageMapper.php, line 13

Namespace

Drupal\social_private_message\Mapper
View source
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 [];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PrivateMessageMapper::getUserIdsFromString public function
SocialProfileTrait::getUserIdsFromName public function Get a list of account IDs whose account names begin with the given string.