/**
  * Returns the object label form the object event (name, title, etc.)
  *
  * @param ModuleHook $object
  * @return string
  */
 protected function getObjectLabel($object)
 {
     try {
         return sprintf("%s on %s", $object->getModule()->getTitle(), $object->getHook()->getTitle());
     } catch (\Exception $ex) {
         return "Undefined module hook";
     }
 }