Function Hook_ajax_tree_choose_theme_files->templates_for_addons

Definitions

sources/hooks/systems/ajax_tree/choose_theme_files.php

  • Find what addons templates are.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filter_addon ?ID_TEXT No No Null N/A N/A Just for this addon (null: all)

Returns

  • Map of template file to addon
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find what addons templates are.
 *
 * @param  ?ID_TEXT $filter_addon Just for this addon (null: all)
 * @return array Map of template file to addon
 */

protected function templates_for_addons(?string $filter_addon = null) : array