====== TagHandler ======
**Layer:** ''Handler'' · **Source:** ''lib/handler/TagHandler.php:16'' (lines 16–49)
----
class TagHandler implements FrontRequestHandler
Renders the tag archive page.
Displays posts matching the requested tag. Redirects to the homepage
if no tag value is provided.
======= Inheritance =======
^ Relation ^ Type ^ Meaning ^
| implements | [[scriptlog:lib:handler:frontrequesthandler|''FrontRequestHandler'']] | contract |
======= Constants (0) =======
//None.//
======= Properties (1) =======
^ Visibility ^ Type ^ Name ^ Default ^ Line ^
| ''private'' | [[scriptlog:lib:core:themerendererinterface|''ThemeRendererInterface'']] | ''$renderer'' | | 23 |
======= Methods (2) =======
^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''__construct()'' | Construct a new TagHandler. | 30 |
| public | ''handle()'' | Handle an incoming front-end request. | 38 |
======== __construct() ========
public function __construct(ThemeRendererInterface $renderer)
//lines 30–33 (4)//
Construct a new TagHandler.
^ Parameter ^ Type ^ Default ^ Description ^
| ''$renderer'' | [[scriptlog:lib:core:themerendererinterface|''ThemeRendererInterface'']] | //required// | The theme renderer instance. |
======== handle() ========
public function handle(array $params): void
//lines 38–48 (11)//
Documentation inherited from [[scriptlog:lib:handler:frontrequesthandler|''Scriptlog\Handler\FrontRequestHandler'']].
Handle an incoming front-end request.
Implementations should validate the parameters, check that the
requested content exists (if applicable), and render the appropriate
theme template via the ThemeRendererInterface instance.
^ Parameter ^ Type ^ Default ^ Description ^
| ''$params'' | ''array'' | //required// | Parsed route parameters (e.g. ['value' => '...']). |
**Returns:** ''void'' — void
======= Imports =======
^ Alias ^ Fully-qualified name ^
| ''ThemeRendererInterface'' | [[scriptlog:lib:core:themerendererinterface|''Scriptlog\Core\ThemeRendererInterface'']] |
----
//This page is generated from source by 'tools/gendoc'. Edits will be overwritten.//