17 private $contentHandlerFactory;
23 $this->contentHandlerFactory = $contentHandlerFactory;
43 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->getModel() );
46 return $contentHandler->preSaveTransform( $content, $pstParams );
66 $contentHandler = $this->contentHandlerFactory->getContentHandler( $content->getModel() );
69 return $contentHandler->preloadTransform( $content, $pltParams );
array $params
The job parameters.
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...
Base interface for representing page content.