Manual:ContentTransformer.php
MediaWiki file: ContentTransformer.php | |
---|---|
Location: | includes/content/Transform/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
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.