|
static | byName (string $name) |
| Return the Mode object with the given name, or null if the name is invalid.
|
|
|
| __construct (string $name) |
| Construct a (singleton) mode.
|
|
◆ __construct()
Wikimedia\Parsoid\Ext\Gallery\Mode::__construct |
( |
string | $name | ) |
|
|
protected |
Construct a (singleton) mode.
- Parameters
-
string | $name | The name of this mode, all lowercase. |
◆ byName()
static Wikimedia\Parsoid\Ext\Gallery\Mode::byName |
( |
string | $name | ) |
|
|
static |
Return the Mode object with the given name, or null if the name is invalid.
- Parameters
-
- Returns
- Mode|null
◆ dimensions()
Wikimedia\Parsoid\Ext\Gallery\Mode::dimensions |
( |
Opts | $opts | ) |
|
|
abstract |
◆ getModules()
Wikimedia\Parsoid\Ext\Gallery\Mode::getModules |
( |
| ) |
|
◆ getModuleStyles()
Wikimedia\Parsoid\Ext\Gallery\Mode::getModuleStyles |
( |
| ) |
|
◆ render()
Render HTML for the given lines in this mode.
- Parameters
-
ParsoidExtensionAPI | $extApi | |
Opts | $opts | |
?DocumentFragment | $caption | |
ParsedLine[] | $lines | |
- Returns
- DocumentFragment
Reimplemented in Wikimedia\Parsoid\Ext\Gallery\TraditionalMode.
The documentation for this class was generated from the following file: