__construct() public method

Base constructor.
public __construct ( string $name, string $type, Closure | string $callbackFunction, array $params = [] )
$name string Plugin Name of the plugin.
$type string Plugin type. The type value depends on the current template engine driver. They usually have values like "function", "tag", "modifier"..etc. Basically they define the type of the plugin.
$callbackFunction Closure | string Callback function that holds the plugin logic.
$params array Optional parameters that can be passed to the plugin.
Example #1
0
 public function __construct()
 {
     parent::__construct('myCustomUpper', 'modifier', '\\Webiny\\Component\\TemplateEngine\\Tests\\Bridge\\Smarty\\Mocks\\PluginMock::myCallback');
 }