You are here

public function PrivateMessageMapper::getThreadIds in Private Message 8.2

Retrieve the IDs of all threads in the system.

Return value

array An array of thread IDs for threads in the system.

Overrides PrivateMessageMapperInterface::getThreadIds

File

src/Mapper/PrivateMessageMapper.php, line 299

Class

PrivateMessageMapper
Interface for the Private Message Mapper class.

Namespace

Drupal\private_message\Mapper

Code

public function getThreadIds() {
  return $this->database
    ->query('SELECT id FROM {private_message_threads}')
    ->fetchCol();
}