diff --git a/packages/guides/src/RenderContext.php b/packages/guides/src/RenderContext.php index 4e3072b1b..1db91fe6c 100644 --- a/packages/guides/src/RenderContext.php +++ b/packages/guides/src/RenderContext.php @@ -142,6 +142,11 @@ public function getDirName(): string return $dirname; } + + public function hasCurrentFileName(): bool + { + return $this->currentFileName !== null; + } public function getCurrentFileName(): string {