Function __global->find_installed_addons

Definitions

sources/addons2.php

  • Find all the installed addons.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$just_non_bundled boolean No No False N/A N/A Whether to only return details on on-bundled addons
$get_info boolean No No True N/A N/A Whether to get full details about each addon
$get_dependencies boolean No No False N/A N/A Whether to search for dependencies (only applies if $get_info is true)

Returns

  • Map of maps describing the available addons (addon name => details)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find all the installed addons.
 *
 * @param  boolean $just_non_bundled Whether to only return details on on-bundled addons
 * @param  boolean $get_info Whether to get full details about each addon
 * @param  boolean $get_dependencies Whether to search for dependencies (only applies if $get_info is true)
 * @return array Map of maps describing the available addons (addon name => details)
 */

function find_installed_addons(bool $just_non_bundled = false, bool $get_info = true, bool $get_dependencies = false) : array