You are here

class OpignoScrollToLastMessage in Opigno messaging 3.x

Ajax command to scroll to the last message.

@package Drupal\opigno_messaging\Ajax

Hierarchy

Expanded class hierarchy of OpignoScrollToLastMessage

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

File

src/Ajax/OpignoScrollToLastMessage.php, line 12

Namespace

Drupal\opigno_messaging\Ajax
View source
class OpignoScrollToLastMessage implements CommandInterface {

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

}

Members

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