public function ImceFM::getResponse in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImceFM.php \Drupal\imce\ImceFM::getResponse()
Returns the response data.
1 call to ImceFM::getResponse()
- ImceFM::pageResponse in src/
ImceFM.php - Returns a page response based on the current request.
File
- src/
ImceFM.php, line 495
Class
- ImceFM
- Imce File Manager.
Namespace
Drupal\imceCode
public function getResponse() {
$defaults = [
'jsop' => $this
->getOp(),
];
if ($messages = $this
->getMessages()) {
$defaults['messages'] = $messages;
}
if ($folder = $this->activeFolder) {
$defaults['active_path'] = $folder
->getPath();
}
return $this->response + $defaults;
}