You are here

class Response in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Response object. Converted to JSON when ready to return HTTP response.

Hierarchy

  • class \Drupal\n1ed\Flmngr\FlmngrServer\resp\Response

Expanded class hierarchy of Response

1 file declares its use of Response
FlmngrServer.php in src/Flmngr/FlmngrServer/FlmngrServer.php

File

src/Flmngr/FlmngrServer/resp/Response.php, line 9

Namespace

Drupal\n1ed\Flmngr\FlmngrServer\resp
View source
class Response {
  public $error;
  public $data;

  /**
   * Creates instance.
   */
  public function __construct($message, $data) {
    $this->error = $message;
    $this->data = $data;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Response::$data public property
Response::$error public property
Response::__construct public function Creates instance.