| @@ 256-268 (lines=13) @@ | ||
| 253 | * |
|
| 254 | * @since 0.1.0 |
|
| 255 | */ |
|
| 256 | private function handleTrackableStaticPageView(&$pageView) |
|
| 257 | { |
|
| 258 | $pageView->evaluateFrontMatter([], [ |
|
| 259 | 'site' => $this->configuration->getConfiguration(), |
|
| 260 | ]); |
|
| 261 | ||
| 262 | if (empty($pageView['title'])) |
|
| 263 | { |
|
| 264 | return; |
|
| 265 | } |
|
| 266 | ||
| 267 | $this->staticPages[$pageView['title']] = &$pageView; |
|
| 268 | } |
|
| 269 | ||
| 270 | /** |
|
| 271 | * Handle special behavior and treatment for dynamic PageViews while we're iterating through them. |
|
| @@ 330-343 (lines=14) @@ | ||
| 327 | * |
|
| 328 | * @since 0.2.0 |
|
| 329 | */ |
|
| 330 | private function handleTrackableRepeaterPageView(&$pageView) |
|
| 331 | { |
|
| 332 | $pageView->evaluateFrontMatter([], [ |
|
| 333 | 'site' => $this->configuration->getConfiguration(), |
|
| 334 | ]); |
|
| 335 | $pageView->configurePermalinks(); |
|
| 336 | ||
| 337 | if (empty($pageView['title'])) |
|
| 338 | { |
|
| 339 | return; |
|
| 340 | } |
|
| 341 | ||
| 342 | $this->repeaterPages[$pageView['title']] = &$pageView; |
|
| 343 | } |
|
| 344 | } |
|
| 345 | ||