MediaRewriteMiddleware
extends BaseViewMiddleware
in package
Scans content as it is being processed and automatically rewrites older Gryphon-style media URLs and turns them into CEO-style media URLs assuming that it can find the media file.
Requires that enableCompatibility and enableMediaRewrite are both enabled in the ceo-site.php config file.
Table of Contents
- afterRender() : mixed
- handle() : mixed
- injectMessage() : string
- Inject message output HTML. Will keep all messages contained to the same container. Can be styled via #__ceo-debug-message ID.
- register() : mixed
Methods
afterRender()
public
afterRender(Event $event, mixed $view) : mixed
Parameters
- $event : Event
- $view : mixed
Return values
mixed —handle()
public
handle(mixed $event, mixed $view) : mixed
Parameters
- $event : mixed
- $view : mixed
Return values
mixed —injectMessage()
Inject message output HTML. Will keep all messages contained to the same container. Can be styled via #__ceo-debug-message ID.
public
injectMessage(mixed $content, mixed $message[, mixed $newLine = true ]) : string
Parameters
- $content : mixed
- $message : mixed
- $newLine : mixed = true
Return values
string —output content
register()
public
register() : mixed