class IndexInterceptor extends BaseInterceptor

Methods

string
afterRenderUncached(string $content)

Interceptor called after render on an uncached view.

string
afterRenderCached(string $content)

Interceptor called after render on an cached view.

mixed
beforeRenderJson(array $params = [])

Interceptor called before rendering a JSON view. Can return an array of serializable items, or a response object directly.

mixed
beforeRender(array $params = [])

Interceptor called before rendering an uncached view.

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.

Details

at line 8
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.

Parameters

string $content

Return Value

string

at line 19
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.

Parameters

string $content

Return Value

string

in BaseInterceptor at line 43
mixed beforeRenderJson(array $params = [])

Interceptor called before rendering a JSON view. Can return an array of serializable items, or a response object directly.

Parameters

array $params

Return Value

mixed either Array or \Ceo\Http\Response

See also

\Ceo\Http\Response

at line 30
mixed beforeRender(array $params = [])

Interceptor called before rendering an uncached view.

Parameters

array $params

Return Value

mixed either Array or \Ceo\Http\Response

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');

Parameters

string $path relative path