You are here

class PrivateMessageLoadNewMessagesCommand in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Ajax/PrivateMessageLoadNewMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageLoadNewMessagesCommand

Ajax Command to trigger a load of new private messages into a thread.

Hierarchy

Expanded class hierarchy of PrivateMessageLoadNewMessagesCommand

1 file declares its use of PrivateMessageLoadNewMessagesCommand
PrivateMessageForm.php in src/Form/PrivateMessageForm.php

File

src/Ajax/PrivateMessageLoadNewMessagesCommand.php, line 10

Namespace

Drupal\private_message\Ajax
View source
class PrivateMessageLoadNewMessagesCommand implements CommandInterface {

  /**
   * {@inheritdoc}
   */
  public function render() {
    return [
      'command' => 'loadNewPrivateMessages',
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PrivateMessageLoadNewMessagesCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render