diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index 291da0eb8..4da911b56 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -1134,6 +1134,17 @@ class Controller return $this->layoutObj; } + /** + * Returns the CMS layout object being processed by the controller. + * The object is not available on the early stages of the controller + * initialization. + * @return \Cms\Classes\Layout Returns the Layout object or null. + */ + public function getLayout() + { + return $this->layout; + } + // // Page helpers //