19 $this->contentHandlerFactory = $contentHandlerFactory;
32 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->getModel() );
35 return $contentHandler->preSaveTransform( $content, $pstParams );
48 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->getModel() );
51 return $contentHandler->preloadTransform( $content, $pltParams );
A service to transform content.
__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 appl...
preSaveTransform(Content $content, PageReference $page, UserIdentity $user, ParserOptions $parserOptions)
Returns a Content object with pre-save transformations applied (or $content if no transformations app...
Content objects represent page content, e.g.