You are here

class PrivateMessageInboxTriggerUpdateCommand in Private Message 8

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

Ajax command to trigger an update of the private message inbox block.

Hierarchy

Expanded class hierarchy of PrivateMessageInboxTriggerUpdateCommand

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

File

src/Ajax/PrivateMessageInboxTriggerUpdateCommand.php, line 10

Namespace

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

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

}

Members

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