diff --git a/system/src/Grav/Common/Plugin.php b/system/src/Grav/Common/Plugin.php index 1b4a42769..e7b6bc481 100644 --- a/system/src/Grav/Common/Plugin.php +++ b/system/src/Grav/Common/Plugin.php @@ -23,6 +23,8 @@ class Plugin implements EventSubscriberInterface */ protected $config; + protected $active = true; + /** * By default assign all methods as listeners using the default priority. * @@ -53,6 +55,14 @@ class Plugin implements EventSubscriberInterface $this->config = $config; } + public function isAdmin() + { + if (isset($this->grav['admin'])) { + return true; + } + return false; + } + /** * @param array $events */