Manual:ContentTransformer.php
Appearance
| MediaWiki file: ContentTransformer.php | |
|---|---|
| Location: | includes/content/Transform/ (includes/Content/Transform/ in 1.46 or later) |
| Source code: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | MediaWiki\Content\Transform\ContentTransformer |
A service to transform content, introduced in MW 1.37.
Public methods
[edit]- preSaveTransform() - return a Content object with pre-save transformations applied, or default content if no transformations apply. Before 1.37, this method was available in the Content class.
- preloadTransform() - return a Content object with preload transformations applied, or again default content if no transformations apply. Before 1.37, this method was available in the Content class. A related method is ContentHandler::preloadTransform.