\ThemeHeadRequirements
Requirements that go into the head
You must set Requirements::set_force_js_to_bottom(true); for this to work properly
- Author: Koala
Synopsis
class ThemeHeadRequirements
{
- // members
- protected static array $javascript = ;
- protected static array $customScript = ;
- // methods
- protected static string|boolean path_for_file()
- public static void output()
- public static void javascript()
- public static void javascriptTemplate()
- public static void customScript()
Members
protected
- $customScript
- $javascript
Methods
protected
- path_for_file() — Finds the path for specified file.
public
- customScript() — Add the javascript code to the header of the page
- javascript() — Register the given javascript file as required.
- javascriptTemplate() — Load the given javascript template with the page.
- output()