You are here

public function OpignoScrollToLastMessage::render in Opigno messaging 3.x

Return an array to be run through json_encode and sent to the client.

Overrides CommandInterface::render

File

src/Ajax/OpignoScrollToLastMessage.php, line 17

Class

OpignoScrollToLastMessage
Ajax command to scroll to the last message.

Namespace

Drupal\opigno_messaging\Ajax

Code

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