|
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 | ) |
Definition at line 18 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).
Definition at line 42 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).
Definition at line 26 of file ContentTransformer.php.