class MediaRewriteMiddleware extends BaseViewMiddleware

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.

Methods

register()

No description

afterRender(Event $event, $view)

No description

string
injectMessage(string $content, string $message, boolean $newLine = true)

Inject message output HTML. Will keep all messages contained to the same container. Can be styled via #__ceo-debug-message ID.

handle($event, $view)

No description

Details

in BaseViewMiddleware at line 14
register()

in BaseViewMiddleware at line 25
afterRender(Event $event, $view)

Parameters

Event $event
$view

in BaseViewMiddleware at line 38
string injectMessage(string $content, string $message, boolean $newLine = true)

Inject message output HTML. Will keep all messages contained to the same container. Can be styled via #__ceo-debug-message ID.

Parameters

string $content output content
string $message your message, can contain HTML
boolean $newLine insert a new line when appending messages

Return Value

string output content

at line 14
handle($event, $view)

Parameters

$event
$view