Skip to content

Commit 89a989b

Browse files
committed
Presenter: added getModule()
1 parent adba66a commit 89a989b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Application/UI/Presenter.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ public function getUniqueId(): string
179179
}
180180

181181

182+
/**
183+
* Returns module name.
184+
*/
185+
final public function getModule(): string
186+
{
187+
return Helpers::splitName($this->getName())[0];
188+
}
189+
190+
182191
/********************* interface IPresenter ****************d*g**/
183192

184193

0 commit comments

Comments
 (0)