Inpsyde\MultilingualPress\Asset\AssetFactory::create_internal_script PHP Method

create_internal_script() public method

Returns a new script object, instantiated according to the given arguments.
Since: 3.0.0
public create_internal_script ( string $handle, string $file, array $dependencies = [], string | null $version = '' ) : Inpsyde\MultilingualPress\Asset\Script
$handle string The handle.
$file string File name.
$dependencies array Optional. The dependencies.
$version string | null Optional. Version of the file. Defaults to empty string.
return Inpsyde\MultilingualPress\Asset\Script Script object.
    public function create_internal_script($handle, $file, array $dependencies = [], $version = '')
    {
        return DebugAwareScript::from_location($handle, new AssetLocation($file, $this->internal_script_path, $this->internal_script_url), $dependencies, $version);
    }