public function index(Request $request) { $this->theme->title(trans('pages.admin_extensions_title')); $this->theme->description(trans('pages.admin_extensions_desc')); $extensionClasses = ExtensionsFacade::all(); $extensions = []; foreach ($extensionClasses as $extensionClass) { $extension = new $extensionClass(); $extensionName = $extension->getName(); $extensions[] = ['name' => $extensionName, 'display_name' => $extension->getDisplayName(), 'description' => $extension->getDescription(), 'editable' => $extension->isEditable(), 'activated' => ExtensionsFacade::isActivated($extensionName), 'static' => ExtensionsFacade::isStatic($extensionName)]; } return $this->_list(['extensions' => $extensions, 'rdr_param' => rdrQueryParam($request->fullUrl())]); }
function isActivatedExtension($extension) { return ExtensionsFacade::isActivated($extension); }