ViewFinderInterface
in
Table of Contents
- HINT_PATH_DELIMITER = '::'
- Hint path delimiter value.
- addExtension() : void
- Add a valid view extension to the finder.
- addLocation() : void
- Add a location to the finder.
- addNamespace() : void
- Add a namespace hint to the finder.
- find() : string
- Get the fully qualified location of the view.
- flush() : void
- Flush the cache of located views.
- prependNamespace() : void
- Prepend a namespace hint to the finder.
- replaceNamespace() : $this
- Replace the namespace hints for the given namespace.
Constants
HINT_PATH_DELIMITER
Hint path delimiter value.
public
string
HINT_PATH_DELIMITER
= '::'
Methods
addExtension()
Add a valid view extension to the finder.
public
addExtension(string $extension) : void
Parameters
- $extension : string
Return values
void —addLocation()
Add a location to the finder.
public
addLocation(string $location) : void
Parameters
- $location : string
Return values
void —addNamespace()
Add a namespace hint to the finder.
public
addNamespace(string $namespace, string|array<string|int, mixed> $hints) : void
Parameters
- $namespace : string
- $hints : string|array<string|int, mixed>
Return values
void —find()
Get the fully qualified location of the view.
public
find(string $view) : string
Parameters
- $view : string
Return values
string —flush()
Flush the cache of located views.
public
flush() : void
Return values
void —prependNamespace()
Prepend a namespace hint to the finder.
public
prependNamespace(string $namespace, string|array<string|int, mixed> $hints) : void
Parameters
- $namespace : string
- $hints : string|array<string|int, mixed>
Return values
void —replaceNamespace()
Replace the namespace hints for the given namespace.
public
replaceNamespace(string $namespace, string|array<string|int, mixed> $hints) : $this
Parameters
- $namespace : string
- $hints : string|array<string|int, mixed>