Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\Insertable\InsertableFactory Class Reference

A factory class used to instantiate instances of Insertables. More...

Static Public Member Functions

static make (string $class, $params=null)
 Takes a InsertableSuggester class name, and returns an instance of that class.
 

Detailed Description

A factory class used to instantiate instances of Insertables.

Author
Abijeet Patro @license GPL-2.0-or-later
Since
2020.12

Definition at line 14 of file InsertableFactory.php.

Member Function Documentation

◆ make()

static MediaWiki\Extension\Translate\TranslatorInterface\Insertable\InsertableFactory::make ( string $class,
$params = null )
static

Takes a InsertableSuggester class name, and returns an instance of that class.

Parameters
string$class
array | string | null$params
Exceptions
InvalidArgumentException

Definition at line 21 of file InsertableFactory.php.


The documentation for this class was generated from the following file: