diff --git a/Plugin.php b/Plugin.php index 0ddf7f0..280eecb 100644 --- a/Plugin.php +++ b/Plugin.php @@ -16,6 +16,8 @@ class Plugin extends \MapasCulturais\Plugin { + protected static $instance; + public function __construct($config = []) { $default_terms = [ @@ -101,6 +103,7 @@ public function __construct($config = []) ]; parent::__construct($config); + self::$instance = $this; } public function _init() @@ -402,4 +405,8 @@ public function getAdminEmail($recipient): string { return $email; } + + public static function getInstance(){ + return self::$instance; + } }