Manual:ContentTransformer.php
Appearance
MediaWiki file: ContentTransformer.php | |
---|---|
Location: | includes/content/Transform/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
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.