Skip to content

Commit 50b8324

Browse files
authored
Merge pull request #781 from phpDocumentor/task/hasCurrentFileName
[TASK] add hasCurrentFileName to RenderContext
2 parents f90995f + fc22620 commit 50b8324

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/guides/src/RenderContext.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ public function getDirName(): string
142142

143143
return $dirname;
144144
}
145+
146+
public function hasCurrentFileName(): bool
147+
{
148+
return $this->currentFileName !== null;
149+
}
145150

146151
public function getCurrentFileName(): string
147152
{

0 commit comments

Comments
 (0)