/**
  * Generic plug-ins implement the enabled/disabled logic
  * by default. This is necessary so that we can make sure
  * that disabled plug-ins will not have to be instantiated.
  *
  * Call this method with a list of management verbs (if any)
  * generated by the custom plug-in.
  *
  * @see Plugin::getManagementVerbs()
  */
 function getManagementVerbs()
 {
     // Site plug-ins can only be administered by site admins
     if ($this->isSitePlugin() && !Validation::isSiteAdmin()) {
         return array();
     }
     $verbs = parent::getManagementVerbs();
     if ($this->getEnabled()) {
         $verbs[] = array('disable', __('common.disable'));
     } else {
         $verbs[] = array('enable', __('common.enable'));
     }
     return $verbs;
 }