protected function call_before_file_created_plugin_functions($newrecord, $pathname = null, $content = null) {
        $pluginsfunction = get_plugins_with_function('before_file_created');
        foreach ($pluginsfunction as $plugintype => $plugins) {
            foreach ($plugins as $pluginfunction) {
                $pluginfunction($newrecord, ['pathname' => $pathname, 'content' => $content]);
            }
        }
    }