public function getPermissionPrefixForModuleKey($key)
    {
        if (starts_with($key, ModuleHelper::MODULE_PREFIX)) {
            $key = substr($key, strlen(ModuleHelper::MODULE_PREFIX));
        }

        return $this->getPermissionPrefixForModelSlug($key);
    }
public function getPermissionPrefixForModuleKey($key)
    {
        if (starts_with($key, ModuleHelper::MODULE_PREFIX)) {
            $key = substr($key, strlen(ModuleHelper::MODULE_PREFIX));
        }

        return $this->getPermissionPrefixForModelSlug($key);
    }
public function getPermissionPrefixForModuleKey ( $ key ) { if ( starts_with ( $ key , ModuleHelper :: MODULE_PREFIX ) ) { $ key = substr ( $ key , strlen ( ModuleHelper :: MODULE_PREFIX ) ) ; } return $ this -> getPermissionPrefixForModelSlug ( $ key ) ; }
Returns the full permission prefix for a model module's key.

@param string $key    full module key to add to the prefix
@return string
Returns the full permission prefix for a model module s key .