MediaWiki master
MediaWiki\Parser\Parsoid\HtmlTransformFactory Class Reference

Public Member Functions

 __construct (private readonly Parsoid $parsoid, private readonly array $parsoidSettings, private readonly PageConfigFactory $configFactory, private readonly IContentHandlerFactory $contentHandlerFactory, private readonly SiteConfig $siteConfig, private readonly TitleFactory $titleFactory, private readonly LanguageConverterFactory $languageConverterFactory, private readonly LanguageFactory $languageFactory,)
 
 getHtmlToContentTransform (string $modifiedHTML, PageIdentity $page)
 Get the HTML transform object for a given page and specified modified HTML.
 
 getLanguageVariantConverter (PageIdentity $page)
 Get a language variant converter object for a given page.
 

Detailed Description

Since
1.40
Stability: unstable
should be marked stable before 1.40 release

Definition at line 19 of file HtmlTransformFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Parser\Parsoid\HtmlTransformFactory::__construct ( private readonly Parsoid $parsoid,
private readonly array $parsoidSettings,
private readonly PageConfigFactory $configFactory,
private readonly IContentHandlerFactory $contentHandlerFactory,
private readonly SiteConfig $siteConfig,
private readonly TitleFactory $titleFactory,
private readonly LanguageConverterFactory $languageConverterFactory,
private readonly LanguageFactory $languageFactory )

Definition at line 20 of file HtmlTransformFactory.php.

Member Function Documentation

◆ getHtmlToContentTransform()

MediaWiki\Parser\Parsoid\HtmlTransformFactory::getHtmlToContentTransform ( string $modifiedHTML,
PageIdentity $page )

Get the HTML transform object for a given page and specified modified HTML.

Parameters
string$modifiedHTML
PageIdentity$page
Returns
HtmlToContentTransform

Definition at line 41 of file HtmlTransformFactory.php.

◆ getLanguageVariantConverter()

MediaWiki\Parser\Parsoid\HtmlTransformFactory::getLanguageVariantConverter ( PageIdentity $page)

Get a language variant converter object for a given page.

Parameters
PageIdentity$page
Returns
LanguageVariantConverter

Definition at line 60 of file HtmlTransformFactory.php.


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