interface ViewEngineInterface implements ViewFinderInterface (View source)

Interface that view engines must implement

Methods

boolean
exists(string $view)

Check if a view exists.

string
canonical(string $view)

Return a canonical string representation of the view name.

make(string[] $views)

Create a view instance from the first view name that exists.

Details

boolean exists(string $view)

Check if a view exists.

Parameters

string $view

Return Value

boolean

string canonical(string $view)

Return a canonical string representation of the view name.

Parameters

string $view

Return Value

string

ViewInterface make(string[] $views)

Create a view instance from the first view name that exists.

Parameters

string[] $views

Return Value

ViewInterface