Definition at line 12 of file Factory.php.
◆ getHelper()
static getHelper |
( |
|
$name | ) |
|
|
static |
Retrieves singleton instance of helper
- Parameters
-
- Returns
- mixed
Definition at line 25 of file Factory.php.
27 if (!isset(self::$_instances[
$name])) {
31 return self::$_instances[
$name];
if(!isset($_GET['name'])) $name
◆ setHelper()
static setHelper |
( |
|
$name, |
|
|
|
$helper |
|
) |
| |
|
static |
Sets custom helper instance to be used for specific name, or null to clear instance. Returns previous instance (if any) or null (if no helper was defined).
- Parameters
-
- Returns
- mixed
Definition at line 42 of file Factory.php.
44 $old = isset(self::$_instances[
$name]) ? self::$_instances[
$name] :
null;
if(!isset($_GET['name'])) $name
◆ $_instances
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/Magento/TestFramework/Helper/Factory.php