MediaWiki master
|
A service to transform content. More...
Public Member Functions | |
__construct (IContentHandlerFactory $contentHandlerFactory) | |
preloadTransform (Content $content, PageReference $page, ParserOptions $parserOptions, array $params=[]) | |
Returns a Content object with preload transformations applied (or $content if no transformations apply). | |
preSaveTransform (Content $content, PageReference $page, UserIdentity $user, ParserOptions $parserOptions) | |
Returns a Content object with pre-save transformations applied (or $content if no transformations apply). | |
MediaWiki\Content\Transform\ContentTransformer::__construct | ( | IContentHandlerFactory | $contentHandlerFactory | ) |
IContentHandlerFactory | $contentHandlerFactory |
Definition at line 22 of file ContentTransformer.php.
MediaWiki\Content\Transform\ContentTransformer::preloadTransform | ( | Content | $content, |
PageReference | $page, | ||
ParserOptions | $parserOptions, | ||
array | $params = [] ) |
Returns a Content object with preload transformations applied (or $content if no transformations apply).
Content | $content | |
PageReference | $page | |
ParserOptions | $parserOptions | |
array | $params |
Definition at line 60 of file ContentTransformer.php.
MediaWiki\Content\Transform\ContentTransformer::preSaveTransform | ( | Content | $content, |
PageReference | $page, | ||
UserIdentity | $user, | ||
ParserOptions | $parserOptions ) |
Returns a Content object with pre-save transformations applied (or $content if no transformations apply).
Content | $content | |
PageReference | $page | |
UserIdentity | $user | |
ParserOptions | $parserOptions |
Definition at line 37 of file ContentTransformer.php.