MediaInterceptor
class MediaInterceptor extends BaseInterceptor
Wrap returned media in Ceo\Compat\Model\Media
Methods
Interceptor called after render on an uncached view.
Interceptor called after render on an cached view.
Interceptor called before rendering a JSON view. Can return an array of serializable items, or a response object directly.
Interceptor called before rendering an uncached view.
Allows you to override the view after the render process has already selected the template. Only works for Twig and Volt templates.
Details
in BaseInterceptor at line 19
string
afterRenderUncached(string $content)
Interceptor called after render on an uncached view.
Can return a string to replace content, or nothing to leave content untouched.
in BaseInterceptor at line 31
string
afterRenderCached(string $content)
Interceptor called after render on an cached view.
Can return a string to replace content, or nothing to leave content untouched.
at line 13
mixed
beforeRenderJson(array $params = [])
Interceptor called before rendering a JSON view. Can return an array of serializable items, or a response object directly.
at line 28
mixed
beforeRender(array $params = [])
Interceptor called before rendering an uncached view.
in BaseInterceptor at line 70
protected
overrideView(string $path)
Allows you to override the view after the render process has already selected the template. Only works for Twig and Volt templates.
$this->overrideView('plugins/path/to/view');