ModuleJS class
An abstract module intended as a base for modules needing to autoload JS or CSS files.
If you extend this, double check that the default isSingular() and isAutoload() methods are doing what you want -- you may want to override them.
See the Module interface (Module.php) for details about each method.
This file is licensed under the MIT license
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Module
class also inherits all the methods and properties of: WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Module Module Module | $this | Add an optional component that can be used with this module | |
Module Module Module | $this | Add an array of optional components | |
Module Module Module | None | Per the Module interface, return an array of information about the Module | |
Module Module Module | None | Per the Module interface, Initialize the Process, loading any related CSS or JS files | |
Module Module Module | None | ||
Module Module Module | None | ||
Module Module Module | $this | Use an extra named component |
Additional methods and properties
In addition to the methods and properties above, Module
API reference based on ProcessWire core version 3.0.251