Manual:ContentTransformer.php

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.