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]);
            }
        }
    }
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]);
            }
        }
    }
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 ] ) ; } } }
before_file_created hook.

@param stdClass|null $newrecord New file record.
@param string|null $pathname Path to file.
@param string|null $content File content.
before_file_created hook .