main/core/Manager/WidgetManager.php
public function getAvailable($context = null)
    {
        $enabledPlugins = $this->pluginManager->getEnabled(true);

        return $this->widgetRepository->findAllAvailable($enabledPlugins, $context);
    }
public function getAvailable($context = null)
    {
        $enabledPlugins = $this->pluginManager->getEnabled(true);

        return $this->widgetRepository->findAllAvailable($enabledPlugins, $context);
    }
public function getAvailable ( $ context = null ) { $ enabledPlugins = $ this -> pluginManager -> getEnabled ( true ) ; return $ this -> widgetRepository -> findAllAvailable ( $ enabledPlugins , $ context ) ; }
Get the list of available widgets in the platform.

@param string $context

@return array
Get the list of available widgets in the platform .