function nodejs_library_info_build in Node.js integration 8
Implements hook_library_info_build().
File
- ./
nodejs.module, line 343
Code
function nodejs_library_info_build() {
$nodejs_config = nodejs_get_config();
$socket_io_config = nodejs_get_socketio_js_config($nodejs_config);
// The socket.io js file needs to be added dynamically because the actual
// location depends on configuration.
$libraries['socketio'] = [
'js' => [
$socket_io_config['path'] => [
'type' => $socket_io_config['type'],
],
],
];
return $libraries;
}