Elgg  Version 4.3
AdminPluginsRefresh.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Controllers;
4 
5 use Elgg\Request;
7 
15 
23  public function __invoke(Request $request) {
24  elgg_set_context('admin');
25 
26  return elgg_ok_response([
27  'list' => elgg_view('admin/plugins', [
28  'list_only' => true,
29  ]),
30  'sidebar' => elgg_view('admin/sidebar'),
31  ]);
32  }
33 }
elgg_set_context($context)
Elgg context library.
Definition: context.php:29
$request
Definition: livesearch.php:11
Controller to handle /admin_plugins_refresh requests.
Request container.
Definition: Request.php:12
elgg_ok_response($content= '', $message= '', $forward_url=null, int $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
__invoke(Request $request)
Respond to a request.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179