public function OpignoMessageThreadController::getEditThreadForm in Opigno messaging 3.x
Get the private messages thread edit form.
Parameters
\Drupal\private_message\Entity\PrivateMessageThreadInterface $private_message_thread: The thread to get the form for.
Return value
\Drupal\Core\Ajax\AjaxResponse The AJAX response object.
Throws
\Drupal\Core\Form\EnforcedResponseException
\Drupal\Core\Form\FormAjaxException
1 string reference to 'OpignoMessageThreadController::getEditThreadForm'
File
- src/
Controller/ OpignoMessageThreadController.php, line 162
Class
- OpignoMessageThreadController
- The Opigno messaging controller.
Namespace
Drupal\opigno_messaging\ControllerCode
public function getEditThreadForm(PrivateMessageThreadInterface $private_message_thread) : AjaxResponse {
$tid = (int) $private_message_thread
->id();
return $this
->prepareThreadFormResponse($tid);
}