17 private $contentHandlerFactory;
20 $this->contentHandlerFactory = $contentHandlerFactory;
40 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->getModel() );
43 return $contentHandler->preSaveTransform( $content, $pstParams );
63 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->getModel() );
66 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.