From 89a989b5d6a0206b4ff8c62da35198b8463a6b65 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 27 Dec 2019 02:03:14 +0100 Subject: [PATCH] Presenter: added getModule() --- src/Application/UI/Presenter.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Application/UI/Presenter.php b/src/Application/UI/Presenter.php index 200add901..1387c0eac 100644 --- a/src/Application/UI/Presenter.php +++ b/src/Application/UI/Presenter.php @@ -179,6 +179,15 @@ public function getUniqueId(): string } + /** + * Returns module name. + */ + final public function getModule(): string + { + return Helpers::splitName($this->getName())[0]; + } + + /********************* interface IPresenter ****************d*g**/