public function appendDeps($hook, $type, $response, $params)
{
if (!$response instanceof AjaxResponse) {
return;
}
$response->getData()->_elgg_deps = (array) $this->amd_config->getDependencies();
return $response;
}